接口 ByteBufferStateStore
-
- 所有超级接口:
java.lang.AutoCloseable,StateStore
public interface ByteBufferStateStore extends StateStore
A key-value state store that stores values inByteBuffer.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voiddelete(java.lang.String key)Delete the state value for the key.java.util.concurrent.CompletableFuture<java.lang.Void>deleteAsync(java.lang.String key)Delete the state value for the key, but don't wait for the operation to be completedjava.nio.ByteBufferget(java.lang.String key)Retrieve the state value for the key.java.util.concurrent.CompletableFuture<java.nio.ByteBuffer>getAsync(java.lang.String key)Retrieve the state value for the key, but don't wait for the operation to be completedvoidput(java.lang.String key, java.nio.ByteBuffer value)Update the state value for the key.java.util.concurrent.CompletableFuture<java.lang.Void>putAsync(java.lang.String key, java.nio.ByteBuffer value)Update the state value for the key, but don't wait for the operation to be completed
-
-
-
方法详细资料
-
put
void put(java.lang.String key, java.nio.ByteBuffer value)Update the state value for the key.- 参数:
key- name of the keyvalue- state value of the key
-
putAsync
java.util.concurrent.CompletableFuture<java.lang.Void> putAsync(java.lang.String key, java.nio.ByteBuffer value)Update the state value for the key, but don't wait for the operation to be completed- 参数:
key- name of the keyvalue- state value of the key
-
delete
void delete(java.lang.String key)
Delete the state value for the key.- 参数:
key- name of the key
-
deleteAsync
java.util.concurrent.CompletableFuture<java.lang.Void> deleteAsync(java.lang.String key)
Delete the state value for the key, but don't wait for the operation to be completed- 参数:
key- name of the key
-
get
java.nio.ByteBuffer get(java.lang.String key)
Retrieve the state value for the key.- 参数:
key- name of the key- 返回:
- the state value for the key.
-
getAsync
java.util.concurrent.CompletableFuture<java.nio.ByteBuffer> getAsync(java.lang.String key)
Retrieve the state value for the key, but don't wait for the operation to be completed- 参数:
key- name of the key- 返回:
- the state value for the key.
-
-