E - type queue elements.public interface DistributedQueueBuilder<E>
| Modifier and Type | Method and Description |
|---|---|
DistributedQueue<E> |
build()
Builds a queue based on the configuration options
supplied to this builder.
|
DistributedQueueBuilder<E> |
withMeteringDisabled() |
DistributedQueueBuilder<E> |
withName(String name)
Sets the name of the queue.
|
DistributedQueueBuilder<E> |
withPersistenceDisabled()
Disables persistence of queues entries.
|
DistributedQueueBuilder<E> |
withSerializer(Serializer serializer)
Sets a serializer that can be used to serialize
the elements pushed into the queue.
|
DistributedQueueBuilder<E> withName(String name)
Each queue is identified by a unique name.
Note: This is a mandatory parameter.
name - name of the queueDistributedQueueBuilder<E> withSerializer(Serializer serializer)
Note: This is a mandatory parameter.
serializer - serializerDistributedQueueBuilder<E> withMeteringDisabled()
DistributedQueueBuilder<E> withPersistenceDisabled()
When persistence is disabled, a full cluster restart will wipe out all queue entries.
DistributedQueue<E> build()
RuntimeException - if a mandatory parameter is missingCopyright © 2015. All rights reserved.