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. |
<V> AsyncAtomicValue<V> |
newAsyncAtomicValue(String name,
Serializer serializer)
Creates a new
AsyncAtomicValue. |
<K,V> AsyncConsistentMap<K,V> |
newAsyncConsistentMap(String name,
Serializer serializer)
Creates a new
AsyncConsistentMap. |
<V> AsyncConsistentTreeMap<V> |
newAsyncConsistentTreeMap(String name,
Serializer serializer)
Creates a new
AsyncConsistentTreeMap. |
AsyncAtomicCounter |
newAsyncCounter(String name)
Creates a new
AsyncAtomicCounter. |
<E> AsyncDistributedSet<E> |
newAsyncDistributedSet(String name,
Serializer serializer)
Creates a new
AsyncDistributedSet. |
<V> AsyncDocumentTree<V> |
newAsyncDocumentTree(String name,
Serializer serializer)
Creates a new
AsyncDocumentTree. |
AsyncLeaderElector |
newAsyncLeaderElector(String name)
Creates a new
AsyncLeaderElector. |
<E> WorkQueue<E> |
newWorkQueue(String name,
Serializer serializer)
Creates a new
WorkQueue. |
<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<V> AsyncConsistentTreeMap<V> newAsyncConsistentTreeMap(String name, Serializer serializer)
AsyncConsistentTreeMap.V - value typename - tree nameserializer - serializer to use for serializing/deserializing map entriesAsyncAtomicCounter newAsyncCounter(String name)
AsyncAtomicCounter.name - counter name<V> AsyncAtomicValue<V> newAsyncAtomicValue(String name, Serializer serializer)
AsyncAtomicValue.V - value typename - value nameserializer - serializer to use for serializing/deserializing value type<E> AsyncDistributedSet<E> newAsyncDistributedSet(String name, Serializer serializer)
AsyncDistributedSet.E - set entry typename - set nameserializer - serializer to use for serializing/deserializing set entriesAsyncLeaderElector newAsyncLeaderElector(String name)
AsyncLeaderElector.name - leader elector name<E> WorkQueue<E> newWorkQueue(String name, Serializer serializer)
WorkQueue.E - work element typename - work queue nameserializer - serializer<V> AsyncDocumentTree<V> newAsyncDocumentTree(String name, Serializer serializer)
AsyncDocumentTree.V - document tree node value typename - tree nameserializer - serializerSet<String> getAsyncConsistentMapNames()
AsyncConsistentMap instances.AsyncConsistentMap namesSet<String> getAsyncAtomicCounterNames()
AsyncAtomicCounter instances.AsyncAtomicCounter names