public abstract class KeepAliveSupport extends Object implements KeepAliveFramesAcceptor
| Modifier and Type | Class and Description |
|---|---|
static class |
KeepAliveSupport.ClientKeepAliveSupport |
static class |
KeepAliveSupport.KeepAlive |
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