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 java.lang.Object implements ConcurrentQueue.Handle<V>
-
-
Field Summary
Fields Modifier and Type Field Description private ConcurrentQueueBlockingImpl.Entry<V>
entry
private long
expiration
private boolean
valid
private V
value
-
Constructor Summary
Constructors Constructor Description HandleImpl(ConcurrentQueueBlockingImpl.Entry<V> entry, V value, long expiration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ConcurrentQueueBlockingImpl.Entry<V>
entry()
long
expiration()
Time at which the element will expireboolean
remove()
Delete the element corresponding to this handle from the queue.V
value()
Return the value that corresponds to this handle.
-
-
-
Field Detail
-
entry
private ConcurrentQueueBlockingImpl.Entry<V> entry
-
value
private final V value
-
valid
private boolean valid
-
expiration
private long expiration
-
-
Constructor Detail
-
HandleImpl
HandleImpl(ConcurrentQueueBlockingImpl.Entry<V> entry, V value, long expiration)
-
-
Method Detail
-
entry
ConcurrentQueueBlockingImpl.Entry<V> entry()
-
value
public V 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.
-
-