接口 ByteBufferStateStore
- 所有超级接口:
AutoCloseable,StateStore
A key-value state store that stores values in
ByteBuffer.-
方法概要
修饰符和类型方法说明voidDelete the state value for the key.deleteAsync(String key) Delete the state value for the key, but don't wait for the operation to be completed.Retrieve the state value for the key.Retrieve the state value for the key, but don't wait for the operation to be completed.default StateValuegetStateValue(String key) Retrieve the StateValue for the key.default CompletableFuture<StateValue>getStateValueAsync(String key) Retrieve the StateValue for the key, but don't wait for the operation to be completed.voidput(String key, ByteBuffer value) Update the state value for the key.putAsync(String key, ByteBuffer value) Update the state value for the key, but don't wait for the operation to be completed.
-
方法详细资料
-
put
Update the state value for the key.- 参数:
key- name of the keyvalue- state value of the key
-
putAsync
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
Delete the state value for the key.- 参数:
key- name of the key
-
deleteAsync
Delete the state value for the key, but don't wait for the operation to be completed.- 参数:
key- name of the key
-
get
Retrieve the state value for the key.- 参数:
key- name of the key- 返回:
- the state value for the key.
-
getAsync
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.
-
getStateValue
Retrieve the StateValue for the key.- 参数:
key- name of the key- 返回:
- the StateValue.
-
getStateValueAsync
Retrieve the StateValue for the key, but don't wait for the operation to be completed.- 参数:
key- name of the key- 返回:
- the StateValue.
-