java.lang.AutoCloseable, java.io.CloseableDistributedDelayQueue, DistributedIdQueue, DistributedPriorityQueue, DistributedQueuepublic interface QueueBase<T>
extends java.io.Closeable
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
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.
|
void start()
throws java.lang.Exception
java.lang.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 exceptionnewErrorMode - the new error mode (the default is ErrorMode.REQUEUEboolean flushPuts(long waitTime,
java.util.concurrent.TimeUnit timeUnit)
throws java.lang.InterruptedException
waitTime - max wait timetimeUnit - time unitjava.lang.InterruptedException - if thread was interruptedint getLastMessageCount()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.