public class ServerRSocketSession extends Object implements RSocketSession, ResumeStateHolder, CoreSubscriber<Long>
Disposable.Composite, Disposable.Swap
Constructor and Description |
---|
ServerRSocketSession(ByteBuf session,
ResumableDuplexConnection resumableDuplexConnection,
DuplexConnection initialDuplexConnection,
ResumableFramesStore resumableFramesStore,
Duration resumeSessionDuration,
boolean cleanupStoreOnKeepAlive) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
long |
impliedPosition() |
boolean |
isDisposed() |
void |
onComplete() |
void |
onError(Throwable t) |
void |
onImpliedPosition(long remoteImpliedPos) |
void |
onNext(Long aLong) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
void |
resumeWith(ByteBuf resumeFrame,
DuplexConnection nextDuplexConnection) |
void |
setKeepAliveSupport(KeepAliveSupport keepAliveSupport) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
currentContext
public ServerRSocketSession(ByteBuf session, ResumableDuplexConnection resumableDuplexConnection, DuplexConnection initialDuplexConnection, ResumableFramesStore resumableFramesStore, Duration resumeSessionDuration, boolean cleanupStoreOnKeepAlive)
public void resumeWith(ByteBuf resumeFrame, DuplexConnection nextDuplexConnection)
public long impliedPosition()
impliedPosition
in interface ResumeStateHolder
public void onImpliedPosition(long remoteImpliedPos)
onImpliedPosition
in interface ResumeStateHolder
public void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe
in interface org.reactivestreams.Subscriber<Long>
onSubscribe
in interface CoreSubscriber<Long>
public void onNext(Long aLong)
onNext
in interface org.reactivestreams.Subscriber<Long>
public void onComplete()
onComplete
in interface org.reactivestreams.Subscriber<Long>
public void onError(Throwable t)
onError
in interface org.reactivestreams.Subscriber<Long>
public void setKeepAliveSupport(KeepAliveSupport keepAliveSupport)
setKeepAliveSupport
in interface RSocketSession
public void dispose()
dispose
in interface Disposable
public boolean isDisposed()
isDisposed
in interface Disposable