public interface StorageService
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. |
<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(String name)
Returns an instance of
AsyncAtomicCounter with specified name. |
<K,V> AsyncConsistentMultimap<K,V> |
getAsyncSetMultimap(String name,
Serializer serializer)
Returns a set backed instance of
AsyncConsistentMultimap with
the specified name. |
<V> AsyncConsistentTreeMap<V> |
getAsyncTreeMap(String name,
Serializer serializer)
Returns an instance of
AsyncConsistentTreeMap with the specified
name. |
default AtomicCounter |
getAtomicCounter(String name)
Returns an instance of
AtomicCounter with specified name. |
<V> AsyncDocumentTree<V> |
getDocumentTree(String name,
Serializer serializer)
Returns an instance of
AsyncDocumentTree with specified name. |
<T> Topic<T> |
getTopic(String name,
Serializer serializer)
Returns an instance of
Topic with specified name. |
<E> WorkQueue<E> |
getWorkQueue(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()
<V> AtomicValueBuilder<V> atomicValueBuilder()
V - atomic value typeLeaderElectorBuilder leaderElectorBuilder()
TransactionContextBuilder transactionContextBuilder()
default AsyncAtomicCounter getAsyncAtomicCounter(String name)
AsyncAtomicCounter with specified name.name - counter namedefault AtomicCounter getAtomicCounter(String name)
AtomicCounter with specified name.name - counter name<E> WorkQueue<E> getWorkQueue(String name, Serializer serializer)
WorkQueue with specified name.E - work element typename - work queue nameserializer - serializer<V> AsyncDocumentTree<V> getDocumentTree(String name, Serializer serializer)
AsyncDocumentTree with specified name.V - tree node value typename - document tree nameserializer - serializer<K,V> AsyncConsistentMultimap<K,V> getAsyncSetMultimap(String name, Serializer serializer)
AsyncConsistentMultimap with
the specified name.K - key typeV - value typename - the multimap nameserializer - serializerAsyncConsistentMultimap instance<V> AsyncConsistentTreeMap<V> getAsyncTreeMap(String name, Serializer serializer)
AsyncConsistentTreeMap with the specified
name.V - value typename - the treemap nameserializer - serializerAsyncConsistentTreeMap instance<T> Topic<T> getTopic(String name, Serializer serializer)
Topic with specified name.T - topic message typename - topic nameserializer - serializer