public class CloseableEngine extends BasicEngine
AbstractEngine.CloseType
offset
handshakeStatus, inboundDone, outboundDone
Constructor and Description |
---|
CloseableEngine(int offset) |
Modifier and Type | Method and Description |
---|---|
void |
closeInbound()
Signals that no more inbound network data will be sent to an
IEngine implementation. |
protected IEngineResult |
closeWrap(ByteBuffer dst) |
protected boolean |
isClosingUnwrap(byte[] data) |
closeUnwrap, preUnwrap, preWrap, unwrap, wrap
beginHandshake, cleanup, closeOutbound, getDelegatedTask, getHandshakeStatus, getMaxApplicationBufferSize, getMaxNetworkBufferSize, getMinApplicationBufferSize, getMinNetworkBufferSize, getSession, init, isInboundDone, isOutboundDone, updateHandshakeStatus, wrap
public void closeInbound() throws SessionIncidentException
IEngine
IEngine
implementation.
This method should be idempotent: if the inbound side has already been closed, this method should not do anything.
closeInbound
in interface IEngine
closeInbound
in class AbstractEngine
SessionIncidentException
- if this engine implementation detected an incident that
should be reported to the associated session's handler (e.g.
when an engine has not received a proper close message from
the peer).IEngine.isInboundDone()
protected boolean isClosingUnwrap(byte[] data)
isClosingUnwrap
in class BasicEngine
protected IEngineResult closeWrap(ByteBuffer dst)
closeWrap
in class BasicEngine
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.