|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QueueStoreDelegate
A DefaultQueueStore 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). |
void |
clear()
Discards all the elements in the queue |
void |
dispose()
Deletes the queue and it's content. |
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
InterruptedException
Serializable poll(long timeout)
throws InterruptedException
InterruptedException
Serializable peek()
throws InterruptedException
InterruptedException
void untake(Serializable item)
throws InterruptedException
InterruptedExceptionint getSize()
void clear()
throws InterruptedException
InterruptedExceptionboolean addAll(Collection<? extends Serializable> items)
items - to be added to the queue
void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||