public abstract class AbstractEngine extends Object implements IEngine
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractEngine.CloseType |
| Modifier and Type | Field and Description |
|---|---|
protected HandshakeStatus |
handshakeStatus |
protected AbstractEngine.CloseType |
inboundDone |
protected AbstractEngine.CloseType |
outboundDone |
| Constructor and Description |
|---|
AbstractEngine() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginHandshake() |
void |
cleanup() |
void |
closeInbound() |
void |
closeOutbound() |
Runnable |
getDelegatedTask() |
HandshakeStatus |
getHandshakeStatus() |
int |
getMaxApplicationBufferSize() |
int |
getMaxNetworkBufferSize() |
int |
getMinApplicationBufferSize() |
int |
getMinNetworkBufferSize() |
Object |
getSession() |
void |
init() |
boolean |
isInboundDone() |
boolean |
isOutboundDone() |
protected IEngineResult |
updateHandshakeStatus(IEngineResult result) |
IEngineResult |
wrap(ByteBuffer src,
ByteBuffer dst) |
protected AbstractEngine.CloseType outboundDone
protected AbstractEngine.CloseType inboundDone
protected HandshakeStatus handshakeStatus
public void beginHandshake()
throws Exception
beginHandshake in interface IEngineExceptionpublic Object getSession()
getSession in interface IEnginepublic boolean isOutboundDone()
isOutboundDone in interface IEnginepublic boolean isInboundDone()
isInboundDone in interface IEnginepublic void closeOutbound()
closeOutbound in interface IEnginepublic void closeInbound()
throws SessionIncidentException
closeInbound in interface IEngineSessionIncidentExceptionpublic int getMinApplicationBufferSize()
getMinApplicationBufferSize in interface IEnginepublic int getMinNetworkBufferSize()
getMinNetworkBufferSize in interface IEnginepublic int getMaxApplicationBufferSize()
getMaxApplicationBufferSize in interface IEnginepublic int getMaxNetworkBufferSize()
getMaxNetworkBufferSize in interface IEnginepublic HandshakeStatus getHandshakeStatus()
getHandshakeStatus in interface IEnginepublic Runnable getDelegatedTask()
getDelegatedTask in interface IEnginepublic IEngineResult wrap(ByteBuffer src, ByteBuffer dst) throws Exception
protected IEngineResult updateHandshakeStatus(IEngineResult result)
Copyright © 2017–2024 SNF4J.ORG. All rights reserved.