public class FederatedDistributedPrimitiveCreator extends Object implements DistributedPrimitiveCreator
DistributedPrimitiveCreator that federates responsibility for creating
distributed primitives to a collection of other creators.| Constructor and Description |
|---|
FederatedDistributedPrimitiveCreator(Map<PartitionId,DistributedPrimitiveCreator> members) |
| 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. |
<K> AsyncAtomicCounterMap<K> |
newAsyncAtomicCounterMap(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new
AsyncAtomicCounterMap. |
<V> AsyncAtomicValue<V> |
newAsyncAtomicValue(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new
AsyncAtomicValue. |
<K,V> AsyncConsistentMap<K,V> |
newAsyncConsistentMap(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new
AsyncConsistentMap. |
<K,V> AsyncConsistentMultimap<K,V> |
newAsyncConsistentSetMultimap(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new set backed
AsyncConsistentMultimap. |
<V> AsyncConsistentTreeMap<V> |
newAsyncConsistentTreeMap(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new
AsyncConsistentTreeMap. |
AsyncAtomicCounter |
newAsyncCounter(String name,
Supplier<Executor> executorSupplier)
Creates a new
AsyncAtomicCounter. |
<E> AsyncDistributedSet<E> |
newAsyncDistributedSet(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new
AsyncDistributedSet. |
<V> AsyncDocumentTree<V> |
newAsyncDocumentTree(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new
AsyncDocumentTree. |
AsyncLeaderElector |
newAsyncLeaderElector(String name,
Supplier<Executor> executorSupplier)
Creates a new
AsyncLeaderElector. |
<E> WorkQueue<E> |
newWorkQueue(String name,
Serializer serializer,
Supplier<Executor> executorSupplier)
Creates a new
WorkQueue. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewAsyncAtomicCounterMap, newAsyncAtomicValue, newAsyncConsistentMap, newAsyncConsistentSetMultimap, newAsyncConsistentTreeMap, newAsyncCounter, newAsyncDistributedSet, newAsyncDocumentTree, newAsyncLeaderElector, newWorkQueuepublic FederatedDistributedPrimitiveCreator(Map<PartitionId,DistributedPrimitiveCreator> members)
public <K,V> AsyncConsistentMap<K,V> newAsyncConsistentMap(String name, Serializer serializer, Supplier<Executor> executorSupplier)
DistributedPrimitiveCreatorAsyncConsistentMap.newAsyncConsistentMap in interface DistributedPrimitiveCreatorK - 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 partitionpublic <V> AsyncConsistentTreeMap<V> newAsyncConsistentTreeMap(String name, Serializer serializer, Supplier<Executor> executorSupplier)
DistributedPrimitiveCreatorAsyncConsistentTreeMap.newAsyncConsistentTreeMap in interface DistributedPrimitiveCreatorV - value typename - tree nameserializer - serializer to use for serializing/deserializing map entriesexecutorSupplier - a callback that returns an executor to be used for each partitionpublic <K,V> AsyncConsistentMultimap<K,V> newAsyncConsistentSetMultimap(String name, Serializer serializer, Supplier<Executor> executorSupplier)
DistributedPrimitiveCreatorAsyncConsistentMultimap.newAsyncConsistentSetMultimap in interface DistributedPrimitiveCreatorK - key typeV - value typename - multimap nameserializer - serializer to use for serializing/deserializingexecutorSupplier - a callback that returns an executor to be used for each partitionpublic <E> AsyncDistributedSet<E> newAsyncDistributedSet(String name, Serializer serializer, Supplier<Executor> executorSupplier)
DistributedPrimitiveCreatorAsyncDistributedSet.newAsyncDistributedSet in interface DistributedPrimitiveCreatorE - set entry typename - set nameserializer - serializer to use for serializing/deserializing set entriesexecutorSupplier - a callback that returns an executor to be used asynchronous callbackspublic <K> AsyncAtomicCounterMap<K> newAsyncAtomicCounterMap(String name, Serializer serializer, Supplier<Executor> executorSupplier)
DistributedPrimitiveCreatorAsyncAtomicCounterMap.newAsyncAtomicCounterMap in interface DistributedPrimitiveCreatorK - key typename - counter map nameserializer - serializer to use for serializing/deserializing keysexecutorSupplier - a callback that returns an executor to be used for each partitionpublic AsyncAtomicCounter newAsyncCounter(String name, Supplier<Executor> executorSupplier)
DistributedPrimitiveCreatorAsyncAtomicCounter.newAsyncCounter in interface DistributedPrimitiveCreatorname - counter nameexecutorSupplier - a callback that returns an executor to be used asynchronous callbackspublic <V> AsyncAtomicValue<V> newAsyncAtomicValue(String name, Serializer serializer, Supplier<Executor> executorSupplier)
DistributedPrimitiveCreatorAsyncAtomicValue.newAsyncAtomicValue in interface DistributedPrimitiveCreatorV - value typename - value nameserializer - serializer to use for serializing/deserializing value typeexecutorSupplier - a callback that returns an executor to be used asynchronous callbackspublic AsyncLeaderElector newAsyncLeaderElector(String name, Supplier<Executor> executorSupplier)
DistributedPrimitiveCreatorAsyncLeaderElector.newAsyncLeaderElector in interface DistributedPrimitiveCreatorname - leader elector nameexecutorSupplier - a callback that returns an executor to be used asynchronous callbackspublic <E> WorkQueue<E> newWorkQueue(String name, Serializer serializer, Supplier<Executor> executorSupplier)
DistributedPrimitiveCreatorWorkQueue.newWorkQueue in interface DistributedPrimitiveCreatorE - work element typename - work queue nameserializer - serializerexecutorSupplier - a callback that returns an executor to be used asynchronous callbackspublic <V> AsyncDocumentTree<V> newAsyncDocumentTree(String name, Serializer serializer, Supplier<Executor> executorSupplier)
DistributedPrimitiveCreatorAsyncDocumentTree.newAsyncDocumentTree in interface DistributedPrimitiveCreatorV - document tree node value typename - tree nameserializer - serializerexecutorSupplier - a callback that returns an executor to be used asynchronous callbackspublic Set<String> getAsyncConsistentMapNames()
DistributedPrimitiveCreatorAsyncConsistentMap instances.getAsyncConsistentMapNames in interface DistributedPrimitiveCreatorAsyncConsistentMap namespublic Set<String> getAsyncAtomicCounterNames()
DistributedPrimitiveCreatorAsyncAtomicCounter instances.getAsyncAtomicCounterNames in interface DistributedPrimitiveCreatorAsyncAtomicCounter namespublic Set<String> getWorkQueueNames()
DistributedPrimitiveCreatorWorkQueue instances.getWorkQueueNames in interface DistributedPrimitiveCreatorWorkQueue names