public interface DistributedPrimitiveCreator
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getAsyncAtomicCounterNames()
Returns the names of all created
AsyncAtomicCounter instances. |
java.util.Set<java.lang.String> |
getAsyncConsistentMapNames()
Returns the names of all created
AsyncConsistentMap instances. |
java.util.Set<java.lang.String> |
getWorkQueueNames()
Returns the names of all created
WorkQueue instances. |
<K> AsyncAtomicCounterMap<K> |
newAsyncAtomicCounterMap(java.lang.String name,
Serializer serializer)
Creates a new
AsyncAtomicCounterMap . |
<V> AsyncAtomicValue<V> |
newAsyncAtomicValue(java.lang.String name,
Serializer serializer)
Creates a new
AsyncAtomicValue . |
<K,V> AsyncConsistentMap<K,V> |
newAsyncConsistentMap(java.lang.String name,
Serializer serializer)
Creates a new
AsyncConsistentMap . |
<K,V> AsyncConsistentMultimap<K,V> |
newAsyncConsistentSetMultimap(java.lang.String name,
Serializer serializer)
Creates a new set backed
AsyncConsistentMultimap . |
<V> AsyncConsistentTreeMap<V> |
newAsyncConsistentTreeMap(java.lang.String name,
Serializer serializer)
Creates a new
AsyncConsistentTreeMap . |
AsyncAtomicCounter |
newAsyncCounter(java.lang.String name)
Creates a new
AsyncAtomicCounter . |
<E> AsyncDistributedSet<E> |
newAsyncDistributedSet(java.lang.String name,
Serializer serializer)
Creates a new
AsyncDistributedSet . |
default <V> AsyncDocumentTree<V> |
newAsyncDocumentTree(java.lang.String name,
Serializer serializer)
Creates a new
AsyncDocumentTree . |
<V> AsyncDocumentTree<V> |
newAsyncDocumentTree(java.lang.String name,
Serializer serializer,
Ordering ordering)
Creates a new
AsyncDocumentTree . |
AsyncAtomicIdGenerator |
newAsyncIdGenerator(java.lang.String name)
Creates a new
AsyncAtomixIdGenerator . |
default AsyncLeaderElector |
newAsyncLeaderElector(java.lang.String name)
Creates a new
AsyncLeaderElector . |
AsyncLeaderElector |
newAsyncLeaderElector(java.lang.String name,
long electionTimeout,
java.util.concurrent.TimeUnit timeUnit)
Creates a new
AsyncLeaderElector . |
<E> WorkQueue<E> |
newWorkQueue(java.lang.String name,
Serializer serializer)
Creates a new
WorkQueue . |
<K,V> AsyncConsistentMap<K,V> newAsyncConsistentMap(java.lang.String name, Serializer serializer)
AsyncConsistentMap
.K
- key typeV
- value typename
- map nameserializer
- serializer to use for serializing/deserializing map entries<V> AsyncConsistentTreeMap<V> newAsyncConsistentTreeMap(java.lang.String name, Serializer serializer)
AsyncConsistentTreeMap
.V
- value typename
- tree nameserializer
- serializer to use for serializing/deserializing map entries<K,V> AsyncConsistentMultimap<K,V> newAsyncConsistentSetMultimap(java.lang.String name, Serializer serializer)
AsyncConsistentMultimap
.K
- key typeV
- value typename
- multimap nameserializer
- serializer to use for serializing/deserializing<K> AsyncAtomicCounterMap<K> newAsyncAtomicCounterMap(java.lang.String name, Serializer serializer)
AsyncAtomicCounterMap
.K
- key typename
- counter map nameserializer
- serializer to use for serializing/deserializing keysAsyncAtomicCounter newAsyncCounter(java.lang.String name)
AsyncAtomicCounter
.name
- counter nameAsyncAtomicIdGenerator newAsyncIdGenerator(java.lang.String name)
AsyncAtomixIdGenerator
.name
- ID generator name<V> AsyncAtomicValue<V> newAsyncAtomicValue(java.lang.String name, Serializer serializer)
AsyncAtomicValue
.V
- value typename
- value nameserializer
- serializer to use for serializing/deserializing value type<E> AsyncDistributedSet<E> newAsyncDistributedSet(java.lang.String name, Serializer serializer)
AsyncDistributedSet
.E
- set entry typename
- set nameserializer
- serializer to use for serializing/deserializing set entriesdefault AsyncLeaderElector newAsyncLeaderElector(java.lang.String name)
AsyncLeaderElector
.name
- leader elector nameAsyncLeaderElector newAsyncLeaderElector(java.lang.String name, long electionTimeout, java.util.concurrent.TimeUnit timeUnit)
AsyncLeaderElector
.name
- leader elector nameelectionTimeout
- leader election timeouttimeUnit
- leader election timeout time unit<E> WorkQueue<E> newWorkQueue(java.lang.String name, Serializer serializer)
WorkQueue
.E
- work element typename
- work queue nameserializer
- serializerdefault <V> AsyncDocumentTree<V> newAsyncDocumentTree(java.lang.String name, Serializer serializer)
AsyncDocumentTree
.V
- document tree node value typename
- tree nameserializer
- serializer<V> AsyncDocumentTree<V> newAsyncDocumentTree(java.lang.String name, Serializer serializer, Ordering ordering)
AsyncDocumentTree
.V
- document tree node value typename
- tree nameserializer
- serializerordering
- tree node orderingjava.util.Set<java.lang.String> getAsyncConsistentMapNames()
AsyncConsistentMap
instances.AsyncConsistentMap
namesjava.util.Set<java.lang.String> getAsyncAtomicCounterNames()
AsyncAtomicCounter
instances.AsyncAtomicCounter
namesjava.util.Set<java.lang.String> getWorkQueueNames()
WorkQueue
instances.WorkQueue
names