public class ClientRSocketSession extends Object implements RSocketSession<Mono<DuplexConnection>>
Disposable.Composite, Disposable.Swap
Constructor and Description |
---|
ClientRSocketSession(DuplexConnection duplexConnection,
Duration resumeSessionDuration,
Retry retry,
ResumableFramesStore resumableFramesStore,
Duration resumeStreamTimeout,
boolean cleanupStoreOnKeepAlive) |
Modifier and Type | Method and Description |
---|---|
ClientRSocketSession |
continueWith(Mono<DuplexConnection> connectionFactory) |
void |
reconnect(DuplexConnection connection) |
ResumableDuplexConnection |
resumableConnection() |
ClientRSocketSession |
resumeToken(ByteBuf resumeToken) |
ClientRSocketSession |
resumeWith(ByteBuf resumeOkFrame) |
ByteBuf |
token() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, isDisposed, onClose
public ClientRSocketSession(DuplexConnection duplexConnection, Duration resumeSessionDuration, Retry retry, ResumableFramesStore resumableFramesStore, Duration resumeStreamTimeout, boolean cleanupStoreOnKeepAlive)
public ClientRSocketSession continueWith(Mono<DuplexConnection> connectionFactory)
continueWith
in interface RSocketSession<Mono<DuplexConnection>>
public ClientRSocketSession resumeWith(ByteBuf resumeOkFrame)
resumeWith
in interface RSocketSession<Mono<DuplexConnection>>
public ClientRSocketSession resumeToken(ByteBuf resumeToken)
public void reconnect(DuplexConnection connection)
reconnect
in interface RSocketSession<Mono<DuplexConnection>>
public ResumableDuplexConnection resumableConnection()
resumableConnection
in interface RSocketSession<Mono<DuplexConnection>>
public ByteBuf token()
token
in interface RSocketSession<Mono<DuplexConnection>>