Package org.cometd.javascript
Class Latch
- java.lang.Object
-
- org.mozilla.javascript.ScriptableObject
-
- org.cometd.javascript.Latch
-
- All Implemented Interfaces:
java.io.Serializable
,org.mozilla.javascript.ConstProperties
,org.mozilla.javascript.debug.DebuggableObject
,org.mozilla.javascript.Scriptable
public class Latch extends org.mozilla.javascript.ScriptableObject
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Latch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
await(long timeout)
java.lang.String
getClassName()
void
jsConstructor(int count)
void
jsFunction_countDown()
long
jsGet_count()
void
reset(int count)
-
Methods inherited from class org.mozilla.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size
-
-
-
-
Method Detail
-
getClassName
public java.lang.String getClassName()
- Specified by:
getClassName
in interfaceorg.mozilla.javascript.Scriptable
- Specified by:
getClassName
in classorg.mozilla.javascript.ScriptableObject
-
jsConstructor
public void jsConstructor(int count)
-
reset
public void reset(int count)
-
await
public boolean await(long timeout) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
jsFunction_countDown
public void jsFunction_countDown()
-
jsGet_count
public long jsGet_count()
-
-