接口 ByteBufferStateStore

所有超级接口:
AutoCloseable, StateStore

public interface ByteBufferStateStore extends StateStore
A key-value state store that stores values in ByteBuffer.
  • 方法详细资料

    • put

      void put(String key, ByteBuffer value)
      Update the state value for the key.
      参数:
      key - name of the key
      value - state value of the key
    • putAsync

      CompletableFuture<Void> putAsync(String key, ByteBuffer value)
      Update the state value for the key, but don't wait for the operation to be completed
      参数:
      key - name of the key
      value - state value of the key
    • delete

      void delete(String key)
      Delete the state value for the key.
      参数:
      key - name of the key
    • deleteAsync

      CompletableFuture<Void> deleteAsync(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

      ByteBuffer get(String key)
      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.