Interface StateRequestContainer


public interface StateRequestContainer
A container which is used to hold StateRequests. The role of StateRequestContainer is to serve as an intermediary carrier for data transmission between the runtime layer and the state layer. It stores the stateRequest from the runtime layer, which is then processed by the state layer.

Notice that the StateRequestContainer may not be thread-safe.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether the container is empty.
    void
    offer(StateRequest<?,?,?,?> stateRequest)
    Preserve a stateRequest into the StateRequestContainer.
  • Method Details

    • offer

      void offer(StateRequest<?,?,?,?> stateRequest)
      Preserve a stateRequest into the StateRequestContainer.
    • isEmpty

      boolean isEmpty()
      Returns whether the container is empty.