ReliableStateManager Interface
public interface ReliableStateManager
Method Summary
Modifier and Type | Method and Description |
---|---|
Transaction |
createTransaction()
Create and start a new transaction that can be used to group operations to be performed atomically. |
Async |
getAsyncEnumerator()
Returns the enumeration of all the reliable states. |
<K extends String, V> CompletableFuture<Reliable |
getOrAddReliableHashMapAsync(String name)
Returns a reliable HashMap table associated with the given name if it is present. Otherwise creates a new table and returns a reference to it. |
<K extends String, V> CompletableFuture<Reliable |
getOrAddReliableHashMapAsync(String name, Duration timeout)
Returns a reliable HashMap table associated with the given name if it is present. Otherwise creates a new table and returns a reference to it. |
<K extends String, V> CompletableFuture<Reliable |
getOrAddReliableHashMapAsync(Transaction tx, String name)
Returns a reliable HashMap table associated with the given name if it is present. Otherwise creates a new table and returns a reference to it. |
<K extends String, V> CompletableFuture<Reliable |
getOrAddReliableHashMapAsync(Transaction tx, String name, Duration timeout)
Returns a reliable HashMap table associated with the given name if it is present. Otherwise creates a new table and returns a reference to it. |
CompletableFuture<?> |
removeAsync(String name)
Removes the Reliable collection associated with the given name. |
CompletableFuture<?> |
removeAsync(String name, Duration timeout)
Removes the Reliable collection associated with the given name. |
CompletableFuture<?> |
removeAsync(Transaction tx, String name)
Removes the Reliable collection associated with the given name. |
CompletableFuture<?> |
removeAsync(Transaction tx, String name, Duration timeout)
Removes the Reliable collection associated with the given name. |
<K extends String, V> CompletableFuture<Conditional |
tryGetReliableHashMapAsync(String name)
Gets the reliable hash map associated with the given name. |
Method Details
createTransaction
public Transaction createTransaction()
Create and start a new transaction that can be used to group operations to be performed atomically.
Returns:
getAsyncEnumerator
public AsyncEnumeration
Returns the enumeration of all the reliable states.
Returns:
getOrAddReliableHashMapAsync
public
Returns a reliable HashMap table associated with the given name if it is present. Otherwise creates a new table and returns a reference to it.
Parameters:
Returns:
getOrAddReliableHashMapAsync
public
Returns a reliable HashMap table associated with the given name if it is present. Otherwise creates a new table and returns a reference to it.
Parameters:
Returns:
getOrAddReliableHashMapAsync
public
Returns a reliable HashMap table associated with the given name if it is present. Otherwise creates a new table and returns a reference to it.
Parameters:
Returns:
getOrAddReliableHashMapAsync
public
Returns a reliable HashMap table associated with the given name if it is present. Otherwise creates a new table and returns a reference to it.
Parameters:
Returns:
removeAsync
public CompletableFuture removeAsync(String name)
Removes the Reliable collection associated with the given name.
Parameters:
Returns:
removeAsync
public CompletableFuture removeAsync(String name, Duration timeout)
Removes the Reliable collection associated with the given name.
Parameters:
Returns:
removeAsync
public CompletableFuture removeAsync(Transaction tx, String name)
Removes the Reliable collection associated with the given name.
Parameters:
Returns:
removeAsync
public CompletableFuture removeAsync(Transaction tx, String name, Duration timeout)
Removes the Reliable collection associated with the given name.
Parameters:
Returns:
tryGetReliableHashMapAsync
public
Gets the reliable hash map associated with the given name.
Parameters:
Returns:
Applies to
Azure SDK for Java