org.jruby.libraries
Class ThreadLibrary.SizedQueue

java.lang.Object
  extended byorg.jruby.RubyObject
      extended byorg.jruby.libraries.ThreadLibrary.Queue
          extended byorg.jruby.libraries.ThreadLibrary.SizedQueue
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject
Enclosing class:
ThreadLibrary

public static class ThreadLibrary.SizedQueue
extends ThreadLibrary.Queue


Nested Class Summary
 
Nested classes inherited from class org.jruby.RubyObject
RubyObject.Finalizer
 
Field Summary
 
Fields inherited from class org.jruby.RubyObject
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
ThreadLibrary.SizedQueue(Ruby runtime, RubyClass type)
           
 
Method Summary
 IRubyObject clear()
           
 IRubyObject max_set(RubyInteger arg)
           
 RubyNumeric max()
           
static IRubyObject newInstance(IRubyObject recv, IRubyObject[] args, Block block)
           
 IRubyObject pop(IRubyObject[] args)
           
 IRubyObject push(IRubyObject value)
           
static void setup(Ruby runtime)
           
 
Methods inherited from class org.jruby.libraries.ThreadLibrary.Queue
empty_p, length, num_waiting
 
Methods inherited from class org.jruby.RubyObject
addFinalizer, anyToString, asString, asSymbol, attachToObjectSpace, callInit, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodMissingIfNecessary, callSuper, checkArrayType, checkFrozen, checkStringType, compilerCallMethod, compilerCallMethodWithIndex, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToString, convertToType, convertToType, convertToType, convertToTypeWithCheck, createObjectClass, dataGetStruct, dataWrapStruct, display, doClone, dup, eql, eqlInternal, equal, equalInternal, equals, evalSimple, evalUnder, evalWithBinding, extend, freeze, frozen, getInstanceVariable, getInstanceVariables, getInstanceVariablesSnapshot, getJavaClass, getMetaClass, getNativeTypeIndex, getRuntime, getSingletonClass, getSingletonClassClone, getType, hash, hashCode, id_deprecated, id, infectBy, inherited, initCopy, initialize_copy, initialize, inspect, instance_eval, instance_exec, instance_of, instance_variable_get, instance_variable_set, instance_variables, instanceVariableNames, isFalse, isFrozen, isImmediate, isKindOf, isNil, isSingleton, isTaint, isTrue, kind_of, makeMetaClass, match, method, methods, nil_p, obj_equal, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, respond_to, respondsTo, safeGetInstanceVariables, safeHasInstanceVariables, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, singleton_methods, specificEval, taint, tainted, testFrozen, to_s, toString, trueFalseNil, trueFalseNil, type_deprecated, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreadLibrary.SizedQueue

public ThreadLibrary.SizedQueue(Ruby runtime,
                                RubyClass type)
Method Detail

newInstance

public static IRubyObject newInstance(IRubyObject recv,
                                      IRubyObject[] args,
                                      Block block)

setup

public static void setup(Ruby runtime)

clear

public IRubyObject clear()
Overrides:
clear in class ThreadLibrary.Queue

max

public RubyNumeric max()

max_set

public IRubyObject max_set(RubyInteger arg)

pop

public IRubyObject pop(IRubyObject[] args)
Overrides:
pop in class ThreadLibrary.Queue

push

public IRubyObject push(IRubyObject value)
Overrides:
push in class ThreadLibrary.Queue


Copyright © 2002-2007 JRuby Team. All Rights Reserved.