Class ConcurrentQueueBlockingImpl.HandleImpl<V>
java.lang.Object
com.sun.corba.ee.impl.transport.concurrent.ConcurrentQueueBlockingImpl.HandleImpl<V>
- All Implemented Interfaces:
ConcurrentQueue.Handle<V>
- Enclosing class:
ConcurrentQueueBlockingImpl<V>
private final class ConcurrentQueueBlockingImpl.HandleImpl<V>
extends Object
implements ConcurrentQueue.Handle<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ConcurrentQueueBlockingImpl<V>.Entry
<V> private long
private boolean
private final V
-
Constructor Summary
ConstructorsConstructorDescriptionHandleImpl
(ConcurrentQueueBlockingImpl<V>.Entry<V> entry, V value, long expiration) -
Method Summary
-
Field Details
-
entry
-
value
-
valid
private boolean valid -
expiration
private long expiration
-
-
Constructor Details
-
HandleImpl
HandleImpl(ConcurrentQueueBlockingImpl<V>.Entry<V> entry, V value, long expiration)
-
-
Method Details
-
entry
ConcurrentQueueBlockingImpl<V>.Entry<V> entry() -
value
Description copied from interface:ConcurrentQueue.Handle
Return the value that corresponds to this handle.- Specified by:
value
in 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:
remove
in interfaceConcurrentQueue.Handle<V>
- Returns:
- if operation succeeded
-
expiration
public long expiration()Description copied from interface:ConcurrentQueue.Handle
Time at which the element will expire- Specified by:
expiration
in interfaceConcurrentQueue.Handle<V>
- Returns:
- time in milliseconds since 1/1/70 when this item expires.
-