Interface AsyncRequestContainer<REQUEST extends AsyncRequest<?>>
-
public interface AsyncRequestContainer<REQUEST extends AsyncRequest<?>>
A container which is used to holdAsyncRequest
s. The role ofAsyncRequestContainer
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
AsyncRequestContainer
may not be thread-safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isEmpty()
Returns whether the container is empty.void
offer(REQUEST stateRequest)
Preserve a stateRequest into theAsyncRequestContainer
.
-
-
-
Method Detail
-
offer
void offer(REQUEST stateRequest)
Preserve a stateRequest into theAsyncRequestContainer
.
-
isEmpty
boolean isEmpty()
Returns whether the container is empty.
-
-