Skip navigation links
A B C D E F K M N O P S T V W 

A

appender() - Method in class org.tools4j.nobark.queue.AtomicConflationQueue
 
appender() - Method in interface org.tools4j.nobark.queue.ConflationQueue
Returns the appender object used by the producer to enqueue values.
appender() - Method in class org.tools4j.nobark.queue.EvictConflationQueue
 
appender() - Method in interface org.tools4j.nobark.queue.ExchangeConflationQueue
 
appender() - Method in class org.tools4j.nobark.queue.MergeConflationQueue
 
AppenderListener<K,V> - Interface in org.tools4j.nobark.queue
A listener for an appender of a ConflationQueue for instance useful to record performance metrics related to enqueue operations.
AppenderListener.Conflation - Enum in org.tools4j.nobark.queue
The type of conflation that occurred when an element was enqueued.
AtomicConflationQueue<K,V> - Class in org.tools4j.nobark.queue
A conflation queue implementation that atomically evicts old values from the queue if a new one is enqueued with the same conflation key.
AtomicConflationQueue(Supplier<? extends Queue<Object>>) - Constructor for class org.tools4j.nobark.queue.AtomicConflationQueue
Constructor with queue factory.
AtomicConflationQueue(Supplier<? extends Queue<Object>>, AppenderListener<? super K, ? super V>, PollerListener<? super K, ? super V>) - Constructor for class org.tools4j.nobark.queue.AtomicConflationQueue
Constructor with queue factory.
AtomicConflationQueue(Supplier<? extends Queue<Object>>, List<? extends K>) - Constructor for class org.tools4j.nobark.queue.AtomicConflationQueue
Constructor with queue factory and the exhaustive list of conflation keys.
AtomicConflationQueue(Supplier<? extends Queue<Object>>, List<? extends K>, AppenderListener<? super K, ? super V>, PollerListener<? super K, ? super V>) - Constructor for class org.tools4j.nobark.queue.AtomicConflationQueue
Constructor with queue factory and the exhaustive list of conflation keys.
atomicQueue(Supplier<? extends Queue<Object>>, Supplier<? extends AppenderListener<? super K, ? super V>>, Supplier<? extends PollerListener<? super K, ? super V>>) - Method in interface org.tools4j.nobark.queue.ConflationQueueBuilderImpl.CqFactory
Factory method for AtomicConflationQueue

B

build(Supplier<? extends Queue<Object>>) - Method in interface org.tools4j.nobark.queue.ConflationQueueBuilder
Builds and returns a new conflation queue instance using the given queue factory for the backing queue.
build(Supplier<? extends Queue<Object>>) - Method in interface org.tools4j.nobark.queue.ConflationQueueBuilder.ExchangeConflationQueueBuilder
Builds and returns a new exchange conflation queue instance using the given queue factory for the backing queue.
build(Supplier<? extends Queue<Object>>) - Method in class org.tools4j.nobark.queue.ConflationQueueBuilderImpl
 
build(Supplier<? extends Queue<Object>>) - Method in class org.tools4j.nobark.queue.ConflationQueueBuilderImpl.EvictConflationQueueBuilder
 
build(Supplier<? extends Queue<Object>>) - Method in class org.tools4j.nobark.queue.ConflationQueueBuilderImpl.MergeConflationQueueBuilder
 
builder() - Static method in interface org.tools4j.nobark.queue.ConflationQueueBuilder
Creates an initial builder; use this method only when conflation keys are not known in advance
builder(Class<K>, Class<V>) - Static method in interface org.tools4j.nobark.queue.ConflationQueueBuilder
Creates an initial builder; use this method only when conflation keys are not known in advance.

C

ConflationQueue<K,V> - Interface in org.tools4j.nobark.queue
A conflation queue is a queue with a safety mechanism to prevent overflow.
ConflationQueue.Appender<K,V> - Interface in org.tools4j.nobark.queue
Appender used by the producer to enqueue values.
ConflationQueue.Poller<K,V> - Interface in org.tools4j.nobark.queue
Poller object used by the consumer to poll values.
ConflationQueueBuilder<K,V> - Interface in org.tools4j.nobark.queue
Builder for the different types of conflation queues serving as alternative to the queue constructors; a builder is returned by the static methods of this interface.
ConflationQueueBuilder.ExchangeConflationQueueBuilder<K,V> - Interface in org.tools4j.nobark.queue
Builder for ExchangeConflationQueue subtypes.
ConflationQueueBuilderImpl<K,V> - Class in org.tools4j.nobark.queue
Package local builder implementation as returned by the static methods of ConflationQueueBuilder.
ConflationQueueBuilderImpl.CqFactory<K,V> - Interface in org.tools4j.nobark.queue
Builder-internal factory for different types of conflation queues.
ConflationQueueBuilderImpl.DeclaredKeysBuilder<K,V> - Class in org.tools4j.nobark.queue
Builder for the case that conflation keys are declared.
ConflationQueueBuilderImpl.DefaultBuilder<K,V> - Class in org.tools4j.nobark.queue
Default builder for the case that no conflation keys are declared.
ConflationQueueBuilderImpl.EnumKeyBuilder<K extends java.lang.Enum<K>,V> - Class in org.tools4j.nobark.queue
Builder for enum conflation key types.
ConflationQueueBuilderImpl.EvictConflationQueueBuilder - Class in org.tools4j.nobark.queue
ConflationQueueBuilderImpl.MergeConflationQueueBuilder - Class in org.tools4j.nobark.queue

D

declareAllConflationKeys(K...) - Static method in interface org.tools4j.nobark.queue.ConflationQueueBuilder
Creates an initial builder given all conflation keys (exhaustive!).
declareAllConflationKeys(List<K>) - Static method in interface org.tools4j.nobark.queue.ConflationQueueBuilder
Creates an initial builder given all conflation keys (exhaustive!).
declareAllConflationKeys(List<K>, Class<V>) - Static method in interface org.tools4j.nobark.queue.ConflationQueueBuilder
Creates an initial builder given all conflation keys (exhaustive!).
DeclaredKeysBuilder(List<? extends K>) - Constructor for class org.tools4j.nobark.queue.ConflationQueueBuilderImpl.DeclaredKeysBuilder
 
DefaultBuilder() - Constructor for class org.tools4j.nobark.queue.ConflationQueueBuilderImpl.DefaultBuilder
 

E

eagerlyInitialiseEntryEnumMap(Class<K>, Supplier<V>) - Static method in class org.tools4j.nobark.queue.Entry
Eagerly initializes an enum map using all enum constants as keys and creating values with the given value factory.
eagerlyInitialiseEntryMap(List<? extends K>, Supplier<V>) - Static method in class org.tools4j.nobark.queue.Entry
Eagerly initializes a hash map using all provided keys and creating values with the given value factory.
enqueue(K, V) - Method in interface org.tools4j.nobark.queue.ConflationQueue.Appender
Enqueue the specified value using the given conflation key.
enqueued(ConflationQueue<? extends K, ? extends V>, K, V, V, AppenderListener.Conflation) - Method in interface org.tools4j.nobark.queue.AppenderListener
Called whenever a value is enqueued.
Entry<K,V> - Class in org.tools4j.nobark.queue
Package local immutable wrapper object used by the queue implementations; holds conflation key and a value.
Entry(K, V) - Constructor for class org.tools4j.nobark.queue.Entry
Constructor with conflation key and value
EnumKeyBuilder(Class<K>) - Constructor for class org.tools4j.nobark.queue.ConflationQueueBuilderImpl.EnumKeyBuilder
 
EvictConflationQueue<K,V> - Class in org.tools4j.nobark.queue
A conflation queue implementation that evicts old values from the queue if a new one is enqueued with the same conflation key.
EvictConflationQueue(Supplier<? extends Queue<Object>>) - Constructor for class org.tools4j.nobark.queue.EvictConflationQueue
Constructor with queue factory.
EvictConflationQueue(Supplier<? extends Queue<Object>>, Supplier<? extends AppenderListener<? super K, ? super V>>, Supplier<? extends PollerListener<? super K, ? super V>>) - Constructor for class org.tools4j.nobark.queue.EvictConflationQueue
Constructor with queue factory.
EvictConflationQueue(Supplier<? extends Queue<Object>>, List<? extends K>) - Constructor for class org.tools4j.nobark.queue.EvictConflationQueue
Constructor with queue factory and the exhaustive list of conflation keys.
EvictConflationQueue(Supplier<? extends Queue<Object>>, List<? extends K>, Supplier<? extends AppenderListener<? super K, ? super V>>, Supplier<? extends PollerListener<? super K, ? super V>>) - Constructor for class org.tools4j.nobark.queue.EvictConflationQueue
Constructor with queue factory and the exhaustive list of conflation keys.
EvictConflationQueueBuilder() - Constructor for class org.tools4j.nobark.queue.ConflationQueueBuilderImpl.EvictConflationQueueBuilder
 
evictQueue(Supplier<? extends Queue<Object>>, Supplier<? extends AppenderListener<? super K, ? super V>>, Supplier<? extends PollerListener<? super K, ? super V>>) - Method in interface org.tools4j.nobark.queue.ConflationQueueBuilderImpl.CqFactory
Factory method for EvictConflationQueue.
ExchangeConflationQueue<K,V> - Interface in org.tools4j.nobark.queue
A conflation queue variant that allows exchanging of elements between the consumer and the producer.
ExchangeConflationQueue.ExchangePoller<K,V> - Interface in org.tools4j.nobark.queue
Poller object used by the consumer to poll values; exchange poller adds functionality for exchanging values with the producer during poll operations.

F

forEnumConflationKey(Supplier<? extends Queue<Object>>, Class<K>) - Static method in class org.tools4j.nobark.queue.AtomicConflationQueue
Static constructor method for a conflation queue with queue factory and the conflation key enum class.
forEnumConflationKey(Supplier<? extends Queue<Object>>, Class<K>, AppenderListener<? super K, ? super V>, PollerListener<? super K, ? super V>) - Static method in class org.tools4j.nobark.queue.AtomicConflationQueue
Static constructor method for a conflation queue with queue factory and the conflation key enum class.
forEnumConflationKey(Class<K>) - Static method in interface org.tools4j.nobark.queue.ConflationQueueBuilder
Creates an initial builder given the enum conflation key class.
forEnumConflationKey(Class<K>, Class<V>) - Static method in interface org.tools4j.nobark.queue.ConflationQueueBuilder
Creates an initial builder given the enum conflation key class.
forEnumConflationKey(Supplier<? extends Queue<Object>>, Class<K>) - Static method in class org.tools4j.nobark.queue.EvictConflationQueue
Static constructor method for a conflation queue with queue factory and the conflation key enum class.
forEnumConflationKey(Supplier<? extends Queue<Object>>, Class<K>, Supplier<? extends AppenderListener<? super K, ? super V>>, Supplier<? extends PollerListener<? super K, ? super V>>) - Static method in class org.tools4j.nobark.queue.EvictConflationQueue
Static constructor method for a conflation queue with queue factory and the conflation key enum class.
forEnumConflationKey(Supplier<? extends Queue<Object>>, Merger<? super K, V>, Class<K>) - Static method in class org.tools4j.nobark.queue.MergeConflationQueue
Static constructor method for a conflation queue with queue factory, merger and the conflation key enum class.
forEnumConflationKey(Supplier<? extends Queue<Object>>, Merger<? super K, V>, Class<K>, Supplier<? extends AppenderListener<? super K, ? super V>>, Supplier<? extends PollerListener<? super K, ? super V>>) - Static method in class org.tools4j.nobark.queue.MergeConflationQueue
Static constructor method for a conflation queue with queue factory, merger and the conflation key enum class.

K

key - Variable in class org.tools4j.nobark.queue.Entry
 

M

merge(K, V, V) - Method in interface org.tools4j.nobark.queue.Merger
Method called to merge two values; the merged value is returned.
MergeConflationQueue<K,V> - Class in org.tools4j.nobark.queue
A conflation queue implementation that merges old and new value if a value is enqueued and another one already exists in the queue with the same conflation key.
MergeConflationQueue(Supplier<? extends Queue<Object>>, Merger<? super K, V>) - Constructor for class org.tools4j.nobark.queue.MergeConflationQueue
Constructor with queue factory and merger.
MergeConflationQueue(Supplier<? extends Queue<Object>>, Merger<? super K, V>, Supplier<? extends AppenderListener<? super K, ? super V>>, Supplier<? extends PollerListener<? super K, ? super V>>) - Constructor for class org.tools4j.nobark.queue.MergeConflationQueue
Constructor with queue factory and merger.
MergeConflationQueue(Supplier<? extends Queue<Object>>, Merger<? super K, V>, List<? extends K>) - Constructor for class org.tools4j.nobark.queue.MergeConflationQueue
Constructor with queue factory, merger and the exhaustive list of conflation keys.
MergeConflationQueue(Supplier<? extends Queue<Object>>, Merger<? super K, V>, List<? extends K>, Supplier<? extends AppenderListener<? super K, ? super V>>, Supplier<? extends PollerListener<? super K, ? super V>>) - Constructor for class org.tools4j.nobark.queue.MergeConflationQueue
Constructor with queue factory, merger and the exhaustive list of conflation keys.
MergeConflationQueueBuilder(Merger<? super K, V>) - Constructor for class org.tools4j.nobark.queue.ConflationQueueBuilderImpl.MergeConflationQueueBuilder
 
mergeQueue(Supplier<? extends Queue<Object>>, Merger<? super K, V>, Supplier<? extends AppenderListener<? super K, ? super V>>, Supplier<? extends PollerListener<? super K, ? super V>>) - Method in interface org.tools4j.nobark.queue.ConflationQueueBuilderImpl.CqFactory
Factory method for MergeConflationQueue.
Merger<K,V> - Interface in org.tools4j.nobark.queue
Merger strategy passed to some conflation queues upon construction to support merging of values when conflation occurs.

N

NOOP - Static variable in interface org.tools4j.nobark.queue.AppenderListener
Constant for a no-op listener.
NOOP - Static variable in interface org.tools4j.nobark.queue.PollerListener
Constant for a no-op listener.
nullSafe(ExchangeConflationQueue<K, V>, Function<? super K, ? extends V>) - Static method in interface org.tools4j.nobark.queue.ExchangeConflationQueue
Returns an ExchangeConflationQueue whose appender is guaranteed to never return null on enqueue.
nullSafe(ConflationQueue.Appender<K, V>, Function<? super K, ? extends V>) - Static method in interface org.tools4j.nobark.queue.ExchangeConflationQueue
Returns an Appender whose enqueue(..) method is guaranteed to never return null.

O

org.tools4j.nobark.queue - package org.tools4j.nobark.queue
Provides interfaces and different implementations of conflation queues -- efficient lock-free queues with a built-in safety mechanism to prevent overflow by the producer.

P

poll(BiConsumer<? super K, ? super V>) - Method in interface org.tools4j.nobark.queue.ConflationQueue.Poller
Polls the queue passing an unused value in exchange to the queue.
poll() - Method in interface org.tools4j.nobark.queue.ConflationQueue.Poller
Polls the queue and returns the value if any value was present in the queue, or null if the queue was empty.
poll(BiConsumer<? super K, ? super V>, V) - Method in interface org.tools4j.nobark.queue.ExchangeConflationQueue.ExchangePoller
Polls the queue passing an unused value in exchange to the queue.
poll(BiConsumer<? super K, ? super V>) - Method in interface org.tools4j.nobark.queue.ExchangeConflationQueue.ExchangePoller
Polls the queue passing an unused value in exchange to the queue.
polled(ConflationQueue<? extends K, ? extends V>, K, V) - Method in interface org.tools4j.nobark.queue.PollerListener
Called whenever a value is polled via any of the poll methods.
polledButFoundEmpty(ConflationQueue<? extends K, ? extends V>) - Method in interface org.tools4j.nobark.queue.PollerListener
Called whenever a poll attempt was made but the queue was found empty.
poller() - Method in class org.tools4j.nobark.queue.AtomicConflationQueue
 
poller() - Method in interface org.tools4j.nobark.queue.ConflationQueue
Returns the poller object used by the consumer to poll values.
poller() - Method in class org.tools4j.nobark.queue.EvictConflationQueue
 
poller() - Method in interface org.tools4j.nobark.queue.ExchangeConflationQueue
 
poller() - Method in class org.tools4j.nobark.queue.MergeConflationQueue
 
PollerListener<K,V> - Interface in org.tools4j.nobark.queue
A listener for an poller of a ConflationQueue for instance useful to record performance metrics related to poll operations.

S

size() - Method in class org.tools4j.nobark.queue.AtomicConflationQueue
 
size() - Method in interface org.tools4j.nobark.queue.ConflationQueue
Returns the number of elements in this queue.
size() - Method in class org.tools4j.nobark.queue.EvictConflationQueue
 
size() - Method in class org.tools4j.nobark.queue.MergeConflationQueue
 

T

threadLocal(Supplier<? extends AppenderListener<K, V>>) - Static method in interface org.tools4j.nobark.queue.AppenderListener
Creates an appender listener that delegates to thread-local listener instances created on demand by the given supplier.
threadLocal(Supplier<? extends PollerListener<K, V>>) - Static method in interface org.tools4j.nobark.queue.PollerListener
Creates a poller listener that delegates to thread-local listener instances created on demand by the given supplier.
threadLocalSupplier(Supplier<L>) - Static method in interface org.tools4j.nobark.queue.AppenderListener
Creates a thread local supplier that creates a new instance once for every caller thread.
threadLocalSupplier(Supplier<L>) - Static method in interface org.tools4j.nobark.queue.PollerListener
Creates a thread local supplier that creates a new instance once for every caller thread.

V

value - Variable in class org.tools4j.nobark.queue.Entry
 
valueOf(String) - Static method in enum org.tools4j.nobark.queue.AppenderListener.Conflation
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.tools4j.nobark.queue.AppenderListener.Conflation
Returns an array containing the constants of this enum type, in the order they are declared.

W

withAppenderListener(Supplier<? extends AppenderListener<? super K, ? super V>>) - Method in interface org.tools4j.nobark.queue.ConflationQueueBuilder.ExchangeConflationQueueBuilder
Register a listener as created by the specified supplier when creating queue appenders.
withAppenderListener(Supplier<? extends AppenderListener<? super K, ? super V>>) - Method in interface org.tools4j.nobark.queue.ConflationQueueBuilder
Register a listener as created by the specified supplier when creating queue appenders.
withAppenderListener(Supplier<? extends AppenderListener<? super K, ? super V>>) - Method in class org.tools4j.nobark.queue.ConflationQueueBuilderImpl.EvictConflationQueueBuilder
 
withAppenderListener(Supplier<? extends AppenderListener<? super K, ? super V>>) - Method in class org.tools4j.nobark.queue.ConflationQueueBuilderImpl.MergeConflationQueueBuilder
 
withAppenderListener(Supplier<? extends AppenderListener<? super K, ? super V>>) - Method in class org.tools4j.nobark.queue.ConflationQueueBuilderImpl
 
withExchangeValueSupport() - Method in interface org.tools4j.nobark.queue.ConflationQueueBuilder
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.
withExchangeValueSupport() - Method in class org.tools4j.nobark.queue.ConflationQueueBuilderImpl
 
withMerging(Merger<? super K, V>) - Method in interface org.tools4j.nobark.queue.ConflationQueueBuilder
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.
withMerging(Merger<? super K, V>) - Method in class org.tools4j.nobark.queue.ConflationQueueBuilderImpl
 
withPollerListener(Supplier<? extends PollerListener<? super K, ? super V>>) - Method in interface org.tools4j.nobark.queue.ConflationQueueBuilder.ExchangeConflationQueueBuilder
Register a listener as created by the specified supplier when creating queue pollers.
withPollerListener(Supplier<? extends PollerListener<? super K, ? super V>>) - Method in interface org.tools4j.nobark.queue.ConflationQueueBuilder
Register a listener as created by the specified supplier when creating queue pollers.
withPollerListener(Supplier<? extends PollerListener<? super K, ? super V>>) - Method in class org.tools4j.nobark.queue.ConflationQueueBuilderImpl.EvictConflationQueueBuilder
 
withPollerListener(Supplier<? extends PollerListener<? super K, ? super V>>) - Method in class org.tools4j.nobark.queue.ConflationQueueBuilderImpl.MergeConflationQueueBuilder
 
withPollerListener(Supplier<? extends PollerListener<? super K, ? super V>>) - Method in class org.tools4j.nobark.queue.ConflationQueueBuilderImpl
 
A B C D E F K M N O P S T V W 
Skip navigation links