|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QueueBase<T>
| Method Summary | |
|---|---|
boolean |
flushPuts(long waitTime,
TimeUnit timeUnit)
Wait until any pending puts are committed |
int |
getLastMessageCount()
Return the most recent message count from the queue. |
org.apache.curator.framework.listen.ListenerContainer<QueuePutListener<T>> |
getPutListenerContainer()
Return the manager for put listeners |
void |
setErrorMode(ErrorMode newErrorMode)
Used when the queue is created with a QueueBuilder.lockPath(String). |
void |
start()
Start the queue. |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Method Detail |
|---|
void start()
throws Exception
Exception - startup errorsorg.apache.curator.framework.listen.ListenerContainer<QueuePutListener<T>> getPutListenerContainer()
void setErrorMode(ErrorMode newErrorMode)
QueueBuilder.lockPath(String). Determines
the behavior when the queue consumer throws an exception
newErrorMode - the new error mode (the default is ErrorMode.REQUEUE
boolean flushPuts(long waitTime,
TimeUnit timeUnit)
throws InterruptedException
waitTime - max wait timetimeUnit - time unit
InterruptedException - if thread was interruptedint getLastMessageCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||