Class ConcurrentQueueImpl.HandleImpl<V>
java.lang.Object
com.sun.corba.ee.impl.transport.concurrent.ConcurrentQueueImpl.HandleImpl<V>
- All Implemented Interfaces:
ConcurrentQueue.Handle<V>
- Enclosing class:
ConcurrentQueueImpl<V>
private final class ConcurrentQueueImpl.HandleImpl<V>
extends Object
implements ConcurrentQueue.Handle<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ConcurrentQueueImpl<V>.Entry<V> private longprivate booleanprivate final V -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
entry
-
value
-
valid
private boolean valid -
expiration
private long expiration
-
-
Constructor Details
-
HandleImpl
HandleImpl(ConcurrentQueueImpl<V>.Entry<V> entry, V value, long expiration)
-
-
Method Details
-
entry
ConcurrentQueueImpl<V>.Entry<V> entry() -
value
Description copied from interface:ConcurrentQueue.HandleReturn the value that corresponds to this handle.- Specified by:
valuein interfaceConcurrentQueue.Handle<V>- Returns:
- the value
-
remove
public boolean remove()Delete the element corresponding to this handle from the queue. Takes constant time.- Specified by:
removein interfaceConcurrentQueue.Handle<V>- Returns:
- if operation succeeded
-
expiration
public long expiration()Description copied from interface:ConcurrentQueue.HandleTime at which the element will expire- Specified by:
expirationin interfaceConcurrentQueue.Handle<V>- Returns:
- time in milliseconds since 1/1/70 when this item expires.
-