| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long | FIRST_FRAME_SENT_FLAG
Bit Flag that indicates that sent first initial frame was sent (in case of requester) or consumed (if responder) |
| pack-priv static final long | FIRST_PAYLOAD_RECEIVED_FLAG
Bit Flag that indicates that the first payload in RequestChannel scenario is received |
| pack-priv static final long | FLAGS_MASK
Volatile Long Field bit mask that allows extract flags stored in the field |
| pack-priv static final long | INBOUND_TERMINATED_FLAG
Bit Flag that indicates requestChannel stream is half terminated. |
| pack-priv static final long | OUTBOUND_TERMINATED_FLAG
Bit Flag that indicates requestChannel stream is half terminated. |
| pack-priv static final long | READY_TO_SEND_FIRST_FRAME_FLAG
Bit Flag that indicates that the logical stream is ready to send the first initial frame (applicable for requester only) |
| pack-priv static final long | REASSEMBLING_FLAG
Bit Flag that indicates that there is a frame being reassembled |
| pack-priv static final long | REQUEST_MASK
Volatile Long Field bit mask that allows extract int RequestN stored in the field |
| pack-priv static final long | SUBSCRIBED_FLAG
Bit Flag that indicates Requester Producer has been subscribed once |
| pack-priv static final long | TERMINATED_STATE
State that indicates request operator was terminated |
| pack-priv static final long | UNSUBSCRIBED_STATE
Initial state for any request operator |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <T> long | |
| pack-priv static <T> long | |
| pack-priv static long | |
| pack-priv static long | |
| pack-priv static boolean | |
| pack-priv static boolean | Returns: true if theFIRST_FRAME_SENT_FLAG flag is setto check whether stream is established state)Indicates that the first frame which established logical stream has already been sent |
| pack-priv static boolean | Returns: true if theFIRST_PAYLOAD_RECEIVED_FLAG flag is setto check whether stream is established state)Indicates that the logical stream is ready for initial frame sending |
| pack-priv static boolean | Returns: true if theINBOUND_TERMINATED_FLAG flag is setto check whether it has state)INBOUND_TERMINATED_FLAG setIndicates that a the inbound channel of a bidirectional stream is terminated. |
| pack-priv static boolean | |
| pack-priv static boolean | Returns: true if theOUTBOUND_TERMINATED_FLAG flag is setto check whether it has state)OUTBOUND_TERMINATED_FLAG setIndicates that a the outbound channel of a bidirectional stream is terminated. |
| pack-priv static boolean | Returns: true if theREADY_TO_SEND_FIRST_FRAME_FLAG flag is setto check whether stream is prepared for initial frame sending state)Indicates that the logical stream is ready for initial frame sending |
| pack-priv static boolean | Returns: true if theREASSEMBLING_FLAG flag is setto check whether there is reassembly in progress state)Indicates that a payload reassembly process is completed. |
| pack-priv static boolean | Returns: true if theSUBSCRIBED_FLAG flag is setto check whether stream is subscribed state)Indicates that the given stream has already been subscribed once |
| pack-priv static boolean | Returns: true if state is terminated or has flag subscribedto check flags on state)Shortcut for |
| pack-priv static boolean | Returns: true if theOUTBOUND_TERMINATED_FLAG flag is setto check whether it has state)OUTBOUND_TERMINATED_FLAG setIndicates that a the outbound channel of a bidirectional stream is terminated. |
| pack-priv static < generic type of the instance T> void | lazyTerminate(AtomicLongFieldUpdater<T>
of the volatile state field updater, T instance holder of the volatile state instance)Makes current state a |
| pack-priv static < generic type of the instance T> long | Returns: return previous state before setting the new oneof the volatile state field updater, T instance holder of the volatile state instance)Adds (if possible) to the given state the |
| pack-priv static < generic type of the instance T> long | Returns: return previous state before setting the new oneof the volatile state field updater, T instance holder of the volatile state instance)Adds (if possible) to the given state the |
| pack-priv static < generic type of the instance T> long | Returns: return previous state before setting the new oneof the volatile state field updater, T instance holder of the volatile state instance)Adds (if possible) to the given state the |
| pack-priv static < generic type of the instance T> long | Returns: return previous state before setting the new oneof the volatile state field updater, T instance holder of the volatile state instance, boolean indicates whether checkEstablishment)FIRST_FRAME_SENT_FLAG should be checked to
make final decisionAdds (if possible) to the given state the |
| pack-priv static < generic type of the instance T> long | Returns: return previous state before setting the new oneof the volatile state field updater, T instance holder of the volatile state instance)Adds (if possible) to the given state the |
| pack-priv static < generic type of the instance T> long | Returns: return previous state before setting the new oneof the volatile state field updater, T instance holder of the volatile state instance)Removes (if possible) from the given state the |
| pack-priv static < generic type of the instance T> long | Returns: return previous state before setting the new oneof the volatile state field updater, T instance holder of the volatile state instance)Adds (if possible) to the given state the |
| pack-priv static < generic type of the instance T> long | Returns: return previous state before setting the new oneof the volatile state field updater, T instance holder of the volatile state instance)Adds (if possible) to the given state the Note, the flag will not be added if the stream has already been terminated or if the stream has already been subscribed once |
| pack-priv static < generic type of the instance T> long | Returns: return previous state before setting the new oneof the volatile state field updater, T instance holder of the volatile state instance, boolean indicates whether the given instance should be marked as prepared markPrepared)Adds (if possible) to the given state the Note, the flag will not be added if the stream has already been terminated or if the stream has already been subscribed once |
| pack-priv static < generic type of the instance T> long | Returns: return previous state before setting the new oneof the volatile state field updater, T instance holder of the volatile state instance)Makes current state a |
| FIRST_FRAME_SENT_FLAG | back to summary |
|---|---|
| pack-priv static final long FIRST_FRAME_SENT_FLAG Bit Flag that indicates that sent first initial frame was sent (in case of requester) or consumed (if responder) | |
| FIRST_PAYLOAD_RECEIVED_FLAG | back to summary |
|---|---|
| pack-priv static final long FIRST_PAYLOAD_RECEIVED_FLAG Bit Flag that indicates that the first payload in RequestChannel scenario is received | |
| FLAGS_MASK | back to summary |
|---|---|
| pack-priv static final long FLAGS_MASK Volatile Long Field bit mask that allows extract flags stored in the field | |
| INBOUND_TERMINATED_FLAG | back to summary |
|---|---|
| pack-priv static final long INBOUND_TERMINATED_FLAG Bit Flag that indicates requestChannel stream is half terminated. In this case flag indicates that the inbound is terminated | |
| OUTBOUND_TERMINATED_FLAG | back to summary |
|---|---|
| pack-priv static final long OUTBOUND_TERMINATED_FLAG Bit Flag that indicates requestChannel stream is half terminated. In this case flag indicates that the outbound is terminated | |
| READY_TO_SEND_FIRST_FRAME_FLAG | back to summary |
|---|---|
| pack-priv static final long READY_TO_SEND_FIRST_FRAME_FLAG Bit Flag that indicates that the logical stream is ready to send the first initial frame (applicable for requester only) | |
| REASSEMBLING_FLAG | back to summary |
|---|---|
| pack-priv static final long REASSEMBLING_FLAG Bit Flag that indicates that there is a frame being reassembled | |
| REQUEST_MASK | back to summary |
|---|---|
| pack-priv static final long REQUEST_MASK Volatile Long Field bit mask that allows extract int RequestN stored in the field | |
| SUBSCRIBED_FLAG | back to summary |
|---|---|
| pack-priv static final long SUBSCRIBED_FLAG Bit Flag that indicates Requester Producer has been subscribed once | |
| TERMINATED_STATE | back to summary |
|---|---|
| pack-priv static final long TERMINATED_STATE State that indicates request operator was terminated | |
| UNSUBSCRIBED_STATE | back to summary |
|---|---|
| pack-priv static final long UNSUBSCRIBED_STATE Initial state for any request operator | |
| StateUtils | back to summary |
|---|---|
| pack-priv StateUtils() | |
| addRequestN | back to summary |
|---|---|
| pack-priv static <T> long addRequestN(AtomicLongFieldUpdater<T> updater, T instance, long toAdd) | |
| addRequestN | back to summary |
|---|---|
| pack-priv static <T> long addRequestN(AtomicLongFieldUpdater<T> updater, T instance, long toAdd, boolean markPrepared) | |
| addRequestN | back to summary |
|---|---|
| pack-priv static long addRequestN(long a, long b) | |
| extractRequestN | back to summary |
|---|---|
| pack-priv static long extractRequestN(long state) | |
| hasRequested | back to summary |
|---|---|
| pack-priv static boolean hasRequested(long state) | |
| isFirstFrameSent | back to summary |
|---|---|
| pack-priv static boolean isFirstFrameSent(long state) Indicates that the first frame which established logical stream has already been sent
| |
| isFirstPayloadReceived | back to summary |
|---|---|
| pack-priv static boolean isFirstPayloadReceived(long state) Indicates that the logical stream is ready for initial frame sending
| |
| isInboundTerminated | back to summary |
|---|---|
| pack-priv static boolean isInboundTerminated(long state) Indicates that a the inbound channel of a bidirectional stream is terminated.
| |
| isMaxAllowedRequestN | back to summary |
|---|---|
| pack-priv static boolean isMaxAllowedRequestN(long n) | |
| isOutboundTerminated | back to summary |
|---|---|
| pack-priv static boolean isOutboundTerminated(long state) Indicates that a the outbound channel of a bidirectional stream is terminated.
| |
| isReadyToSendFirstFrame | back to summary |
|---|---|
| pack-priv static boolean isReadyToSendFirstFrame(long state) Indicates that the logical stream is ready for initial frame sending
| |
| isReassembling | back to summary |
|---|---|
| pack-priv static boolean isReassembling(long state) Indicates that a payload reassembly process is completed.
| |
| isSubscribed | back to summary |
|---|---|
| pack-priv static boolean isSubscribed(long state) Indicates that the given stream has already been subscribed once
| |
| isSubscribedOrTerminated | back to summary |
|---|---|
| pack-priv static boolean isSubscribedOrTerminated(long state) Shortcut for
| |
| isTerminated | back to summary |
|---|---|
| pack-priv static boolean isTerminated(long state) Indicates that a the outbound channel of a bidirectional stream is terminated.
| |
| lazyTerminate | back to summary |
|---|---|
| pack-priv static <T> void lazyTerminate(AtomicLongFieldUpdater<T> updater, T instance) Makes current state a
| |
| markFirstFrameSent | back to summary |
|---|---|
| pack-priv static <T> long markFirstFrameSent(AtomicLongFieldUpdater<T> updater, T instance) Adds (if possible) to the given state the Note, the flag will not be added if the stream has already been terminated or if the stream has already been established once
| |
| markFirstPayloadReceived | back to summary |
|---|---|
| pack-priv static <T> long markFirstPayloadReceived(AtomicLongFieldUpdater<T> updater, T instance) Adds (if possible) to the given state the Note, the flag will not be added if the stream has already been terminated or if the stream has already been marked as prepared
| |
| markInboundTerminated | back to summary |
|---|---|
| pack-priv static <T> long markInboundTerminated(AtomicLongFieldUpdater<T> updater, T instance) Adds (if possible) to the given state the Note , this action will have no effect if the stream has already been terminated or if
the Note , if the outbound stream has already been terminated, then the result state will be
| |
| markOutboundTerminated | back to summary |
|---|---|
| pack-priv static <T> long markOutboundTerminated(AtomicLongFieldUpdater<T> updater, T instance, boolean checkEstablishment) Adds (if possible) to the given state the Note , this action will have no effect if the stream has already been terminated or if
the Note , if the
| |
| markReadyToSendFirstFrame | back to summary |
|---|---|
| pack-priv static <T> long markReadyToSendFirstFrame(AtomicLongFieldUpdater<T> updater, T instance) Adds (if possible) to the given state the Note, the flag will not be added if the stream has already been terminated or if the stream has already been marked as prepared
| |
| markReassembled | back to summary |
|---|---|
| pack-priv static <T> long markReassembled(AtomicLongFieldUpdater<T> updater, T instance) Removes (if possible) from the given state the Note, the flag will not be removed if the stream has already been terminated
| |
| markReassembling | back to summary |
|---|---|
| pack-priv static <T> long markReassembling(AtomicLongFieldUpdater<T> updater, T instance) Adds (if possible) to the given state the Note, the flag will not be added if the stream has already been terminated
| |
| markSubscribed | back to summary |
|---|---|
| pack-priv static <T> long markSubscribed(AtomicLongFieldUpdater<T> updater, T instance) Adds (if possible) to the given state the Note, the flag will not be added if the stream has already been terminated or if the stream has already been subscribed once
| |
| markSubscribed | back to summary |
|---|---|
| pack-priv static <T> long markSubscribed(AtomicLongFieldUpdater<T> updater, T instance, boolean markPrepared) Adds (if possible) to the given state the Note, the flag will not be added if the stream has already been terminated or if the stream has already been subscribed once
| |
| markTerminated | back to summary |
|---|---|
| pack-priv static <T> long markTerminated(AtomicLongFieldUpdater<T> updater, T instance) Makes current state a
| |