com.caucho.env.actor
Class ValueActorQueue<T>
java.lang.Object
com.caucho.env.actor.ValueActorQueue<T>
- All Implemented Interfaces:
- ActorQueueApi<T>
- Direct Known Subclasses:
- MailboxQueue2
public class ValueActorQueue<T>
- extends java.lang.Object
- implements ActorQueueApi<T>
Interface for the transaction log.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ValueActorQueue
public ValueActorQueue(int capacity,
ActorProcessor<? super T>... processors)
getAvailable
public int getAvailable()
- Specified by:
getAvailable
in interface ActorQueueApi<T>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface ActorQueueApi<T>
getSize
public int getSize()
- Specified by:
getSize
in interface ActorQueueApi<T>
offer
public final void offer(T value)
- Specified by:
offer
in interface ActorQueueApi<T>
offer
public final boolean offer(T value,
boolean isWait)
- Specified by:
offer
in interface ActorQueueApi<T>
wake
public void wake()
- Specified by:
wake
in interface ActorQueueApi<T>
close
public void close()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object