class ConflationQueueBuilderImpl.MergeConflationQueueBuilder extends java.lang.Object implements ConflationQueueBuilder.ExchangeConflationQueueBuilder<K,V>
MergeConflationQueue.| Constructor and Description |
|---|
MergeConflationQueueBuilder(Merger<? super K,V> merger) |
| Modifier and Type | Method and Description |
|---|---|
MergeConflationQueue<K,V> |
build(java.util.function.Supplier<? extends java.util.Queue<java.lang.Object>> queueFactory)
Builds and returns a new exchange conflation queue instance using the given queue factory for the backing
queue.
|
ConflationQueueBuilderImpl.MergeConflationQueueBuilder |
withAppenderListener(java.util.function.Supplier<? extends AppenderListener<? super K,? super V>> listenerSupplier)
Register a listener as created by the specified supplier when creating queue appenders.
|
ConflationQueueBuilderImpl.MergeConflationQueueBuilder |
withPollerListener(java.util.function.Supplier<? extends PollerListener<? super K,? super V>> listenerSupplier)
Register a listener as created by the specified supplier when creating queue pollers.
|
MergeConflationQueueBuilder(Merger<? super K,V> merger)
public ConflationQueueBuilderImpl.MergeConflationQueueBuilder withAppenderListener(java.util.function.Supplier<? extends AppenderListener<? super K,? super V>> listenerSupplier)
ConflationQueueBuilder.ExchangeConflationQueueBuilderAppenderListener.threadLocalSupplier(Supplier).withAppenderListener in interface ConflationQueueBuilder.ExchangeConflationQueueBuilder<K,V>listenerSupplier - a listener supplier acting as listener factorypublic ConflationQueueBuilderImpl.MergeConflationQueueBuilder withPollerListener(java.util.function.Supplier<? extends PollerListener<? super K,? super V>> listenerSupplier)
ConflationQueueBuilder.ExchangeConflationQueueBuilderPollerListener.threadLocalSupplier(Supplier).withPollerListener in interface ConflationQueueBuilder.ExchangeConflationQueueBuilder<K,V>listenerSupplier - a listener supplier acting as listener factorypublic MergeConflationQueue<K,V> build(java.util.function.Supplier<? extends java.util.Queue<java.lang.Object>> queueFactory)
ConflationQueueBuilder.ExchangeConflationQueueBuilderbuild in interface ConflationQueueBuilder.ExchangeConflationQueueBuilder<K,V>queueFactory - the factory to create the backing queue