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 java.util.concurrent.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(java.util.concurrent.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(java.util.concurrent.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(java.util.concurrent.Executor executor)
Executor
that should be used to deliver events from this
bufferexecutor
- BufferBuilder<R,T,U> withScheduler(java.util.concurrent.ScheduledExecutorService scheduler)
ScheduledExecutorService
that should be used to trigger
timed events after this bufferscheduler
- R build()
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0