public interface ByteBufferStateStore extends StateStore
ByteBuffer.| Modifier and Type | Method and Description |
|---|---|
void |
delete(String key)
Delete the state value for the key.
|
CompletableFuture<Void> |
deleteAsync(String key)
Delete the state value for the key, but don't wait for the operation to be completed
|
ByteBuffer |
get(String key)
Retrieve the state value for the key.
|
CompletableFuture<ByteBuffer> |
getAsync(String key)
Retrieve the state value for the key, but don't wait for the operation to be completed
|
void |
put(String key,
ByteBuffer value)
Update the state value for the key.
|
CompletableFuture<Void> |
putAsync(String key,
ByteBuffer value)
Update the state value for the key, but don't wait for the operation to be completed
|
void put(String key, ByteBuffer value)
key - name of the keyvalue - state value of the keyCompletableFuture<Void> putAsync(String key, ByteBuffer value)
key - name of the keyvalue - state value of the keyvoid delete(String key)
key - name of the keyCompletableFuture<Void> deleteAsync(String key)
key - name of the keyByteBuffer get(String key)
key - name of the keyCompletableFuture<ByteBuffer> getAsync(String key)
key - name of the keyCopyright © 2017–2022 Apache Software Foundation. All rights reserved.