| Package | Description |
|---|---|
| org.apache.curator.framework.recipes.queue |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> QueueBuilder<T> |
QueueBuilder.builder(org.apache.curator.framework.CuratorFramework client,
QueueConsumer<T> consumer,
QueueSerializer<T> serializer,
java.lang.String queuePath) |
Allocate a new builder
|
QueueBuilder<T> |
QueueBuilder.executor(java.util.concurrent.Executor executor) |
Change the executor used.
|
QueueBuilder<T> |
QueueBuilder.finalFlushTime(int time,
java.util.concurrent.TimeUnit unit) |
Sets an amount of time to call
DistributedQueue.flushPuts(long, TimeUnit) when the
queue is closed. |
QueueBuilder<T> |
QueueBuilder.lockPath(java.lang.String path) |
Without a lock set, queue items are removed before being sent to the queue consumer.
|
QueueBuilder<T> |
QueueBuilder.maxItems(int maxItems) |
By default, the various queues are unbounded.
|
QueueBuilder<T> |
QueueBuilder.putInBackground(boolean putInBackground) |
By default, messages are added in the background.
|
QueueBuilder<T> |
QueueBuilder.threadFactory(java.util.concurrent.ThreadFactory factory) |
Change the thread factory used.
|
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.