public class CloseableEngine extends BasicEngine
AbstractEngine.CloseTypeoffsethandshakeStatus, 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, wrapbeginHandshake, cleanup, closeOutbound, getDelegatedTask, getHandshakeStatus, getMaxApplicationBufferSize, getMaxNetworkBufferSize, getMinApplicationBufferSize, getMinNetworkBufferSize, getSession, init, isInboundDone, isOutboundDone, updateHandshakeStatus, wrappublic void closeInbound()
throws SessionIncidentException
IEngineIEngine implementation.
This method should be idempotent: if the inbound side has already been closed, this method should not do anything.
closeInbound in interface IEnginecloseInbound in class AbstractEngineSessionIncidentException - 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 BasicEngineprotected IEngineResult closeWrap(ByteBuffer dst)
closeWrap in class BasicEngineCopyright © 2017–2022 SNF4J.ORG. All rights reserved.