Package | Description |
---|---|
org.apache.curator.framework.recipes.queue |
Modifier and Type | Method and Description |
---|---|
static <T> QueueBuilder<T> |
QueueBuilder.builder(CuratorFramework client,
QueueConsumer<T> consumer,
QueueSerializer<T> serializer,
String queuePath)
Allocate a new builder
|
QueueBuilder<T> |
QueueBuilder.executor(Executor executor)
Change the executor used.
|
QueueBuilder<T> |
QueueBuilder.finalFlushTime(int time,
TimeUnit unit)
Sets an amount of time to call
DistributedQueue.flushPuts(long, TimeUnit) when the
queue is closed. |
QueueBuilder<T> |
QueueBuilder.lockPath(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(ThreadFactory factory)
Change the thread factory used.
|
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.