|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueueInfoDelegate
A QueueInfo delegates the actual work of processing its queue to one of these.
Method Summary | |
---|---|
boolean |
addAll(Collection<? extends Serializable> items)
Appends all of the elements in the specified collection to the queue (optional operation). |
int |
getSize()
Return the size of the queue |
boolean |
offer(Serializable o,
int room,
long timeout)
Offer to append a new member to the end of the queue |
Serializable |
peek()
return, but do not remove, the first member of the queue |
Serializable |
poll(long timeout)
Poll the queue for its first member, and, if there is one, remove and return it |
void |
putNow(Serializable o)
append a new member to the end of the queue |
void |
untake(Serializable item)
Restore a previously removed member to the front of the queue |
Method Detail |
---|
void putNow(Serializable o)
boolean offer(Serializable o, int room, long timeout) throws InterruptedException, ObjectStoreException
InterruptedException
ObjectStoreException
Serializable poll(long timeout) throws InterruptedException
InterruptedException
Serializable peek() throws InterruptedException
InterruptedException
void untake(Serializable item) throws InterruptedException, ObjectStoreException
InterruptedException
ObjectStoreException
int getSize()
boolean addAll(Collection<? extends Serializable> items)
items
- to be added to the queue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |