| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ByteBufAllocator | |
| pack-priv final boolean | |
| pack-priv final Queue | connectionsQueue
All incoming connections with the Resume intent are enqueued in this queue. |
| pack-priv KeepAliveSupport | |
| private static final Logger | |
| pack-priv final ResumableDuplexConnection | |
| pack-priv final ResumableFramesStore | |
| pack-priv final Duration | |
| pack-priv volatile Subscription | |
| pack-priv static final AtomicReferenceFieldUpdater | |
| pack-priv final String | |
| pack-priv volatile int | |
| pack-priv static final AtomicIntegerFieldUpdater |
| Access | Constructor and Description |
|---|---|
| public | ServerRSocketSession(ByteBuf session, ResumableDuplexConnection resumableDuplexConnection, DuplexConnection initialDuplexConnection, ResumableFramesStore resumableFramesStore, Duration resumeSessionDuration, boolean cleanupStoreOnKeepAlive)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements reactor. |
| pack-priv void | |
| public long | |
| public boolean | isDisposed()
Overrides default reactor. |
| public void | |
| public void | onError(Throwable
the throwable signaled t)Implements org. |
| public void | onImpliedPosition(long remoteImpliedPos)
Implements io. |
| public void | onNext(Long
the element signaled aLong)Implements org. Publisher in response to requests to Subscription#request(long).
|
| public void | onSubscribe(Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements reactor. onNext(Object) before
calling Subscription#request(long).
|
| public void | |
| public void | setKeepAliveSupport(KeepAliveSupport keepAliveSupport)
Implements io. |
| pack-priv boolean | |
| pack-priv void |
| allocator | back to summary |
|---|---|
| pack-priv final ByteBufAllocator allocator | |
| cleanupStoreOnKeepAlive | back to summary |
|---|---|
| pack-priv final boolean cleanupStoreOnKeepAlive | |
| connectionsQueue | back to summary |
|---|---|
| pack-priv final Queue<Runnable> connectionsQueue All incoming connections with the Resume intent are enqueued in this queue. Such an approach ensure that the new connection will affect the resumption state anyhow until the previous (active) connection is finally closed | |
| keepAliveSupport | back to summary |
|---|---|
| pack-priv KeepAliveSupport keepAliveSupport | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| resumableConnection | back to summary |
|---|---|
| pack-priv final ResumableDuplexConnection resumableConnection | |
| resumableFramesStore | back to summary |
|---|---|
| pack-priv final ResumableFramesStore resumableFramesStore | |
| resumeSessionDuration | back to summary |
|---|---|
| pack-priv final Duration resumeSessionDuration | |
| s | back to summary |
|---|---|
| pack-priv volatile Subscription s | |
| S | back to summary |
|---|---|
| pack-priv static final AtomicReferenceFieldUpdater<ServerRSocketSession, Subscription> S | |
| session | back to summary |
|---|---|
| pack-priv final String session | |
| wip | back to summary |
|---|---|
| pack-priv volatile int wip | |
| WIP | back to summary |
|---|---|
| pack-priv static final AtomicIntegerFieldUpdater<ServerRSocketSession> WIP | |
| ServerRSocketSession | back to summary |
|---|---|
| public ServerRSocketSession(ByteBuf session, ResumableDuplexConnection resumableDuplexConnection, DuplexConnection initialDuplexConnection, ResumableFramesStore resumableFramesStore, Duration resumeSessionDuration, boolean cleanupStoreOnKeepAlive) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements reactor. Doc from reactor. Cancel or dispose the underlying task or resource. Implementations are required to make this method idempotent.
| |
| doResume | back to summary |
|---|---|
| pack-priv void doResume(long remotePos, long remoteImpliedPos, DuplexConnection nextDuplexConnection) | |
| impliedPosition | back to summary |
|---|---|
| public long impliedPosition() Implements io.
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Overrides default reactor. Doc from reactor. Optionally return true when the resource or task is disposed. Implementations are not required to track disposition and as such may never return true even when disposed. However, they MUST only return true when there's a guarantee the resource or task is disposed.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements org. Doc from org. Successful terminal state.
No further events will be sent even if
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements org. Doc from org. Failed terminal state.
No further events will be sent even if | |
| onImpliedPosition | back to summary |
|---|---|
| public void onImpliedPosition(long remoteImpliedPos) Implements io.
| |
| onNext | back to summary |
|---|---|
| public void onNext(Long aLong) Implements org. Doc from org. Data notification sent by the | |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Subscription s) Implements reactor. Doc from reactor. Implementors should initialize any state used by
Note that an invalid request
No data will start flowing until
It is the responsibility of this
The
| |
| resumeWith | back to summary |
|---|---|
| public void resumeWith(ByteBuf resumeFrame, DuplexConnection nextDuplexConnection) | |
| setKeepAliveSupport | back to summary |
|---|---|
| public void setKeepAliveSupport(KeepAliveSupport keepAliveSupport) Implements io. | |
| tryCancelSessionTimeout | back to summary |
|---|---|
| pack-priv boolean tryCancelSessionTimeout() | |
| tryTimeoutSession | back to summary |
|---|---|
| pack-priv void tryTimeoutSession() | |