|
|||||||||
| 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,
java.util.concurrent.TimeUnit timeUnit)
Wait until any pending puts are committed |
int |
getLastMessageCount()
Return the most recent message count from the queue. |
com.netflix.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 java.lang.Exception
java.lang.Exception - startup errorscom.netflix.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,
java.util.concurrent.TimeUnit timeUnit)
throws java.lang.InterruptedException
waitTime - max wait timetimeUnit - time unit
java.lang.InterruptedException - if thread was interruptedint getLastMessageCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||