R
- The type of object being builtT
- The type of objects in the PushEvent
U
- The type of the Queue used in the user specified buffer@ProviderType public interface BufferBuilder<R,T,U extends BlockingQueue<PushEvent<? extends T>>>
Modifier and Type | Method and Description |
---|---|
R |
build() |
BufferBuilder<R,T,U> |
withBuffer(U queue)
The BlockingQueue implementation to use as a buffer
|
BufferBuilder<R,T,U> |
withExecutor(Executor executor)
Set the
Executor that should be used to deliver events from this
buffer |
BufferBuilder<R,T,U> |
withParallelism(int parallelism)
Set the maximum permitted number of concurrent event deliveries allowed
from this buffer
|
BufferBuilder<R,T,U> |
withPushbackPolicy(PushbackPolicy<T,U> pushbackPolicy)
Set the
PushbackPolicy of this builder |
BufferBuilder<R,T,U> |
withPushbackPolicy(PushbackPolicyOption pushbackPolicyOption,
long time)
Set the
PushbackPolicy of this builder |
BufferBuilder<R,T,U> |
withQueuePolicy(QueuePolicy<T,U> queuePolicy)
Set the
QueuePolicy of this Builder |
BufferBuilder<R,T,U> |
withQueuePolicy(QueuePolicyOption queuePolicyOption)
Set the
QueuePolicy of this Builder |
BufferBuilder<R,T,U> |
withScheduler(ScheduledExecutorService scheduler)
Set the
ScheduledExecutorService that should be used to trigger
timed events after this buffer |
BufferBuilder<R,T,U> withBuffer(U queue)
queue
- BufferBuilder<R,T,U> withQueuePolicy(QueuePolicy<T,U> queuePolicy)
QueuePolicy
of this BuilderqueuePolicy
- BufferBuilder<R,T,U> withQueuePolicy(QueuePolicyOption queuePolicyOption)
QueuePolicy
of this BuilderqueuePolicyOption
- BufferBuilder<R,T,U> withPushbackPolicy(PushbackPolicy<T,U> pushbackPolicy)
PushbackPolicy
of this builderpushbackPolicy
- BufferBuilder<R,T,U> withPushbackPolicy(PushbackPolicyOption pushbackPolicyOption, long time)
PushbackPolicy
of this builderpushbackPolicyOption
- time
- BufferBuilder<R,T,U> withParallelism(int parallelism)
parallelism
- BufferBuilder<R,T,U> withExecutor(Executor executor)
Executor
that should be used to deliver events from this
bufferexecutor
- BufferBuilder<R,T,U> withScheduler(ScheduledExecutorService scheduler)
ScheduledExecutorService
that should be used to trigger
timed events after this bufferscheduler
- R build()
Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0