public interface DistributedPrimitiveCreator
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAsyncAtomicCounterNames()
Returns the names of all created
AsyncAtomicCounter instances. |
Set<String> |
getAsyncConsistentMapNames()
Returns the names of all created
AsyncConsistentMap instances. |
Set<String> |
getWorkQueueNames()
Returns the names of all created
WorkQueue instances. |
default <K> AsyncAtomicCounterMap<K> |
newAsyncAtomicCounterMap(String name,
Serializer serializer)
Creates a new
AsyncAtomicCounterMap. |
<K> AsyncAtomicCounterMap<K> |
newAsyncAtomicCounterMap(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new
AsyncAtomicCounterMap. |
default <V> AsyncAtomicValue<V> |
newAsyncAtomicValue(String name,
Serializer serializer)
Creates a new
AsyncAtomicValue. |
<V> AsyncAtomicValue<V> |
newAsyncAtomicValue(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new
AsyncAtomicValue. |
default <K,V> AsyncConsistentMap<K,V> |
newAsyncConsistentMap(String name,
Serializer serializer)
Creates a new
AsyncConsistentMap. |
<K,V> AsyncConsistentMap<K,V> |
newAsyncConsistentMap(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new
AsyncConsistentMap. |
default <K,V> AsyncConsistentMultimap<K,V> |
newAsyncConsistentSetMultimap(String name,
Serializer serializer)
Creates a new set backed
AsyncConsistentMultimap. |
<K,V> AsyncConsistentMultimap<K,V> |
newAsyncConsistentSetMultimap(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new set backed
AsyncConsistentMultimap. |
default <V> AsyncConsistentTreeMap<V> |
newAsyncConsistentTreeMap(String name,
Serializer serializer)
Creates a new
AsyncConsistentTreeMap. |
<V> AsyncConsistentTreeMap<V> |
newAsyncConsistentTreeMap(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new
AsyncConsistentTreeMap. |
default AsyncAtomicCounter |
newAsyncCounter(String name)
Creates a new
AsyncAtomicCounter. |
AsyncAtomicCounter |
newAsyncCounter(String name,
Supplier<Executor> executorSupplier)
Creates a new
AsyncAtomicCounter. |
default <E> AsyncDistributedSet<E> |
newAsyncDistributedSet(String name,
Serializer serializer)
Creates a new
AsyncDistributedSet. |
<E> AsyncDistributedSet<E> |
newAsyncDistributedSet(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new
AsyncDistributedSet. |
default <V> AsyncDocumentTree<V> |
newAsyncDocumentTree(String name,
Serializer serializer)
Creates a new
AsyncDocumentTree. |
<V> AsyncDocumentTree<V> |
newAsyncDocumentTree(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new
AsyncDocumentTree. |
default AsyncAtomicIdGenerator |
newAsyncIdGenerator(String name)
Creates a new
AsyncAtomixIdGenerator. |
AsyncAtomicIdGenerator |
newAsyncIdGenerator(String name,
Supplier<Executor> executorSupplier)
Creates a new
AsyncAtomixIdGenerator. |
default AsyncLeaderElector |
newAsyncLeaderElector(String name)
Creates a new
AsyncLeaderElector. |
AsyncLeaderElector |
newAsyncLeaderElector(String name,
Supplier<Executor> executorSupplier)
Creates a new
AsyncLeaderElector. |
default <E> WorkQueue<E> |
newWorkQueue(String name,
Serializer serializer)
Creates a new
WorkQueue. |
<E> WorkQueue<E> |
newWorkQueue(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new
WorkQueue. |
default <K,V> AsyncConsistentMap<K,V> newAsyncConsistentMap(String name, Serializer serializer)
AsyncConsistentMap.K - key typeV - value typename - map nameserializer - serializer to use for serializing/deserializing map entries<K,V> AsyncConsistentMap<K,V> newAsyncConsistentMap(String name, Serializer serializer, Supplier<Executor> executorSupplier)
AsyncConsistentMap.K - key typeV - value typename - map nameserializer - serializer to use for serializing/deserializing map entriesexecutorSupplier - a callback that returns an executor to be used for each partitiondefault <V> AsyncConsistentTreeMap<V> newAsyncConsistentTreeMap(String name, Serializer serializer)
AsyncConsistentTreeMap.V - value typename - tree nameserializer - serializer to use for serializing/deserializing map entries<V> AsyncConsistentTreeMap<V> newAsyncConsistentTreeMap(String name, Serializer serializer, Supplier<Executor> executorSupplier)
AsyncConsistentTreeMap.V - value typename - tree nameserializer - serializer to use for serializing/deserializing map entriesexecutorSupplier - a callback that returns an executor to be used for each partitiondefault <K,V> AsyncConsistentMultimap<K,V> newAsyncConsistentSetMultimap(String name, Serializer serializer)
AsyncConsistentMultimap.K - key typeV - value typename - multimap nameserializer - serializer to use for serializing/deserializing<K,V> AsyncConsistentMultimap<K,V> newAsyncConsistentSetMultimap(String name, Serializer serializer, Supplier<Executor> executorSupplier)
AsyncConsistentMultimap.K - key typeV - value typename - multimap nameserializer - serializer to use for serializing/deserializingexecutorSupplier - a callback that returns an executor to be used for each partitiondefault <K> AsyncAtomicCounterMap<K> newAsyncAtomicCounterMap(String name, Serializer serializer)
AsyncAtomicCounterMap.K - key typename - counter map nameserializer - serializer to use for serializing/deserializing keys<K> AsyncAtomicCounterMap<K> newAsyncAtomicCounterMap(String name, Serializer serializer, Supplier<Executor> executorSupplier)
AsyncAtomicCounterMap.K - key typename - counter map nameserializer - serializer to use for serializing/deserializing keysexecutorSupplier - a callback that returns an executor to be used for each partitiondefault AsyncAtomicCounter newAsyncCounter(String name)
AsyncAtomicCounter.name - counter nameAsyncAtomicCounter newAsyncCounter(String name, Supplier<Executor> executorSupplier)
AsyncAtomicCounter.name - counter nameexecutorSupplier - a callback that returns an executor to be used asynchronous callbacksdefault AsyncAtomicIdGenerator newAsyncIdGenerator(String name)
AsyncAtomixIdGenerator.name - ID generator nameAsyncAtomicIdGenerator newAsyncIdGenerator(String name, Supplier<Executor> executorSupplier)
AsyncAtomixIdGenerator.name - ID generator nameexecutorSupplier - a callback that returns an executor to be used asynchronous callbacksdefault <V> AsyncAtomicValue<V> newAsyncAtomicValue(String name, Serializer serializer)
AsyncAtomicValue.V - value typename - value nameserializer - serializer to use for serializing/deserializing value type<V> AsyncAtomicValue<V> newAsyncAtomicValue(String name, Serializer serializer, Supplier<Executor> executorSupplier)
AsyncAtomicValue.V - value typename - value nameserializer - serializer to use for serializing/deserializing value typeexecutorSupplier - a callback that returns an executor to be used asynchronous callbacksdefault <E> AsyncDistributedSet<E> newAsyncDistributedSet(String name, Serializer serializer)
AsyncDistributedSet.E - set entry typename - set nameserializer - serializer to use for serializing/deserializing set entries<E> AsyncDistributedSet<E> newAsyncDistributedSet(String name, Serializer serializer, Supplier<Executor> executorSupplier)
AsyncDistributedSet.E - set entry typename - set nameserializer - serializer to use for serializing/deserializing set entriesexecutorSupplier - a callback that returns an executor to be used asynchronous callbacksdefault AsyncLeaderElector newAsyncLeaderElector(String name)
AsyncLeaderElector.name - leader elector nameAsyncLeaderElector newAsyncLeaderElector(String name, Supplier<Executor> executorSupplier)
AsyncLeaderElector.name - leader elector nameexecutorSupplier - a callback that returns an executor to be used asynchronous callbacksdefault <E> WorkQueue<E> newWorkQueue(String name, Serializer serializer)
WorkQueue.E - work element typename - work queue nameserializer - serializer<E> WorkQueue<E> newWorkQueue(String name, Serializer serializer, Supplier<Executor> executorSupplier)
WorkQueue.E - work element typename - work queue nameserializer - serializerexecutorSupplier - a callback that returns an executor to be used asynchronous callbacksdefault <V> AsyncDocumentTree<V> newAsyncDocumentTree(String name, Serializer serializer)
AsyncDocumentTree.V - document tree node value typename - tree nameserializer - serializer<V> AsyncDocumentTree<V> newAsyncDocumentTree(String name, Serializer serializer, Supplier<Executor> executorSupplier)
AsyncDocumentTree.V - document tree node value typename - tree nameserializer - serializerexecutorSupplier - a callback that returns an executor to be used asynchronous callbacksSet<String> getAsyncConsistentMapNames()
AsyncConsistentMap instances.AsyncConsistentMap namesSet<String> getAsyncAtomicCounterNames()
AsyncAtomicCounter instances.AsyncAtomicCounter names