K - the conflation key typeV - the value typeclass ConflationQueueBuilderImpl<K,V> extends java.lang.Object implements ConflationQueueBuilder<K,V>
ConflationQueueBuilder.| Modifier and Type | Class and Description |
|---|---|
(package private) static interface |
ConflationQueueBuilderImpl.CqFactory<K,V>
Builder-internal factory for different types of conflation queues.
|
(package private) static class |
ConflationQueueBuilderImpl.DeclaredKeysBuilder<K,V>
Builder for the case that conflation keys are declared.
|
(package private) static class |
ConflationQueueBuilderImpl.DefaultBuilder<K,V>
Default builder for the case that no conflation keys are declared.
|
(package private) static class |
ConflationQueueBuilderImpl.EnumKeyBuilder<K extends java.lang.Enum<K>,V>
Builder for enum conflation key types.
|
(package private) class |
ConflationQueueBuilderImpl.EvictConflationQueueBuilder
Builder for
EvictConflationQueue. |
(package private) class |
ConflationQueueBuilderImpl.MergeConflationQueueBuilder
Builder for
MergeConflationQueue. |
ConflationQueueBuilder.ExchangeConflationQueueBuilder<K,V>| Modifier and Type | Method and Description |
|---|---|
ConflationQueue<K,V> |
build(java.util.function.Supplier<? extends java.util.Queue<java.lang.Object>> queueFactory)
Builds and returns a new conflation queue instance using the given queue factory for the backing queue.
|
ConflationQueueBuilder<K,V> |
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.
|
ConflationQueueBuilder.ExchangeConflationQueueBuilder<K,V> |
withExchangeValueSupport()
Switch builder mode to create a conflation queue that allows exchanging of elements between the consumer and the
producer, that is, the builder will now create a
ExchangeConflationQueue. |
ConflationQueueBuilder.ExchangeConflationQueueBuilder<K,V> |
withMerging(Merger<? super K,V> merger)
Switch builder mode to create a conflation queue that supports merging of old and new values when conflation
occurs, that is, the builder will now create a
MergeConflationQueue. |
ConflationQueueBuilder<K,V> |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilder, builder, declareAllConflationKeys, declareAllConflationKeys, declareAllConflationKeys, forEnumConflationKey, forEnumConflationKeypublic ConflationQueueBuilder<K,V> withAppenderListener(java.util.function.Supplier<? extends AppenderListener<? super K,? super V>> listenerSupplier)
ConflationQueueBuilderAppenderListener.threadLocalSupplier(Supplier).withAppenderListener in interface ConflationQueueBuilder<K,V>listenerSupplier - a listener supplier acting as listener factorypublic ConflationQueueBuilder<K,V> withPollerListener(java.util.function.Supplier<? extends PollerListener<? super K,? super V>> listenerSupplier)
ConflationQueueBuilderPollerListener.threadLocalSupplier(Supplier).withPollerListener in interface ConflationQueueBuilder<K,V>listenerSupplier - a listener supplier acting as listener factorypublic ConflationQueueBuilder.ExchangeConflationQueueBuilder<K,V> withExchangeValueSupport()
ConflationQueueBuilderExchangeConflationQueue.withExchangeValueSupport in interface ConflationQueueBuilder<K,V>ExchangeConflationQueue, more specifically an EvictConflationQueueExchangeConflationQueue,
EvictConflationQueue,
ConflationQueueBuilder.withMerging(Merger)public ConflationQueueBuilder.ExchangeConflationQueueBuilder<K,V> withMerging(Merger<? super K,V> merger)
ConflationQueueBuilderMergeConflationQueue.withMerging in interface ConflationQueueBuilder<K,V>merger - merge strategy to use when conflation occursExchangeConflationQueue, more specifically a MergeConflationQueueExchangeConflationQueue,
MergeConflationQueue,
ConflationQueueBuilder.withExchangeValueSupport()public ConflationQueue<K,V> build(java.util.function.Supplier<? extends java.util.Queue<java.lang.Object>> queueFactory)
ConflationQueueBuilderbuild in interface ConflationQueueBuilder<K,V>queueFactory - the factory to create the backing queue