public interface PrimitiveService
This service provides builders for various distributed primitives.
It is expected that services and applications will leverage the primitives indirectly provided by this service for their distributed state management and coordination.
Modifier and Type | Method and Description |
---|---|
AtomicCounterBuilder |
atomicCounterBuilder()
Creates a new AtomicCounterBuilder.
|
<K> AtomicCounterMapBuilder<K> |
atomicCounterMapBuilder()
Creates a new
AtomicCounterMapBuilder . |
AtomicIdGeneratorBuilder |
atomicIdGeneratorBuilder()
Creates a new AtomicIdGeneratorBuilder.
|
<V> AtomicValueBuilder<V> |
atomicValueBuilder()
Creates a new AtomicValueBuilder.
|
<K,V> ConsistentMapBuilder<K,V> |
consistentMapBuilder()
Creates a new ConsistentMapBuilder.
|
<K,V> ConsistentMultimapBuilder<K,V> |
consistentMultimapBuilder()
Creates a new
AsyncConsistentSetMultimapBuilder . |
<V> ConsistentTreeMapBuilder<V> |
consistentTreeMapBuilder()
Creates a new
AsyncConsistentTreeMapBuilder . |
<V> DocumentTreeBuilder<V> |
documentTreeBuilder()
Creates a new ConsistentMapBuilder.
|
<K,V> EventuallyConsistentMapBuilder<K,V> |
eventuallyConsistentMapBuilder()
Creates a new EventuallyConsistentMapBuilder.
|
default AsyncAtomicCounter |
getAsyncAtomicCounter(java.lang.String name)
Returns an instance of
AsyncAtomicCounter with specified name. |
default AsyncAtomicIdGenerator |
getAsyncAtomicIdGenerator(java.lang.String name)
Returns an instance of
AsyncAtomicIdGenerator with specified name. |
<K,V> AsyncConsistentMultimap<K,V> |
getAsyncSetMultimap(java.lang.String name,
Serializer serializer)
Returns a set backed instance of
AsyncConsistentMultimap with
the specified name. |
<V> AsyncConsistentTreeMap<V> |
getAsyncTreeMap(java.lang.String name,
Serializer serializer)
Returns an instance of
AsyncConsistentTreeMap with the specified
name. |
default AtomicCounter |
getAtomicCounter(java.lang.String name)
Returns an instance of
AtomicCounter with specified name. |
default AtomicIdGenerator |
getAtomicIdGenerator(java.lang.String name)
Returns an instance of
AtomicIdGenerator with specified name. |
<V> AsyncDocumentTree<V> |
getDocumentTree(java.lang.String name,
Serializer serializer)
Returns an instance of
AsyncDocumentTree with specified name. |
<T> Topic<T> |
getTopic(java.lang.String name,
Serializer serializer)
Returns an instance of
Topic with specified name. |
<E> WorkQueue<E> |
getWorkQueue(java.lang.String name,
Serializer serializer)
Returns an instance of
WorkQueue with specified name. |
LeaderElectorBuilder |
leaderElectorBuilder()
Creates a new LeaderElectorBuilder.
|
<E> DistributedSetBuilder<E> |
setBuilder()
Creates a new DistributedSetBuilder.
|
TransactionContextBuilder |
transactionContextBuilder()
Creates a new transaction context builder.
|
<K,V> EventuallyConsistentMapBuilder<K,V> eventuallyConsistentMapBuilder()
K
- key typeV
- value type<K,V> ConsistentMapBuilder<K,V> consistentMapBuilder()
K
- key typeV
- value type<V> DocumentTreeBuilder<V> documentTreeBuilder()
V
- value type<V> ConsistentTreeMapBuilder<V> consistentTreeMapBuilder()
AsyncConsistentTreeMapBuilder
.V
- value type<K,V> ConsistentMultimapBuilder<K,V> consistentMultimapBuilder()
AsyncConsistentSetMultimapBuilder
.K
- key typeV
- value type<K> AtomicCounterMapBuilder<K> atomicCounterMapBuilder()
AtomicCounterMapBuilder
.K
- key type<E> DistributedSetBuilder<E> setBuilder()
E
- set element typeAtomicCounterBuilder atomicCounterBuilder()
AtomicIdGeneratorBuilder atomicIdGeneratorBuilder()
<V> AtomicValueBuilder<V> atomicValueBuilder()
V
- atomic value typeLeaderElectorBuilder leaderElectorBuilder()
TransactionContextBuilder transactionContextBuilder()
default AsyncAtomicCounter getAsyncAtomicCounter(java.lang.String name)
AsyncAtomicCounter
with specified name.name
- counter namedefault AsyncAtomicIdGenerator getAsyncAtomicIdGenerator(java.lang.String name)
AsyncAtomicIdGenerator
with specified name.name
- ID generator namedefault AtomicCounter getAtomicCounter(java.lang.String name)
AtomicCounter
with specified name.name
- counter namedefault AtomicIdGenerator getAtomicIdGenerator(java.lang.String name)
AtomicIdGenerator
with specified name.name
- ID generator name<E> WorkQueue<E> getWorkQueue(java.lang.String name, Serializer serializer)
WorkQueue
with specified name.E
- work element typename
- work queue nameserializer
- serializer<V> AsyncDocumentTree<V> getDocumentTree(java.lang.String name, Serializer serializer)
AsyncDocumentTree
with specified name.V
- tree node value typename
- document tree nameserializer
- serializer<K,V> AsyncConsistentMultimap<K,V> getAsyncSetMultimap(java.lang.String name, Serializer serializer)
AsyncConsistentMultimap
with
the specified name.K
- key typeV
- value typename
- the multimap nameserializer
- serializerAsyncConsistentMultimap
instance<V> AsyncConsistentTreeMap<V> getAsyncTreeMap(java.lang.String name, Serializer serializer)
AsyncConsistentTreeMap
with the specified
name.V
- value typename
- the treemap nameserializer
- serializerAsyncConsistentTreeMap
instance<T> Topic<T> getTopic(java.lang.String name, Serializer serializer)
Topic
with specified name.T
- topic message typename
- topic nameserializer
- serializer