public abstract class KeepAliveSupport extends Object implements KeepAliveFramesAcceptor
| Modifier and Type | Class and Description |
|---|---|
static class |
KeepAliveSupport.ClientKeepAliveSupport |
static class |
KeepAliveSupport.KeepAlive |
static class |
KeepAliveSupport.ServerKeepAliveSupport
Deprecated.
since it should not be used anymore and will be completely removed in 1.1.
Keepalive is symmetric on both side and implemented as a part of RSocketRequester
|
Disposable.Composite, Disposable.Swap| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
boolean |
isDisposed() |
KeepAliveSupport |
onSendKeepAliveFrame(Consumer<ByteBuf> onFrameSent) |
KeepAliveSupport |
onTimeout(Consumer<KeepAliveSupport.KeepAlive> onTimeout) |
void |
receive(ByteBuf keepAliveFrame) |
KeepAliveSupport |
resumeState(ResumeStateHolder resumeStateHolder) |
KeepAliveSupport |
start() |
void |
stop() |
public KeepAliveSupport start()
public void stop()
public void receive(ByteBuf keepAliveFrame)
receive in interface KeepAliveFramesAcceptorpublic KeepAliveSupport resumeState(ResumeStateHolder resumeStateHolder)
public KeepAliveSupport onSendKeepAliveFrame(Consumer<ByteBuf> onFrameSent)
public KeepAliveSupport onTimeout(Consumer<KeepAliveSupport.KeepAlive> onTimeout)
public void dispose()
dispose in interface Disposablepublic boolean isDisposed()
isDisposed in interface Disposable