EstablishBase
, InboundEstablishState
, OutboundEstablishState
interface EstablishState
Modifier and Type | Method | Description |
---|---|---|
void |
close(String reason,
Exception e) |
Release resources on timeout.
|
String |
getError() |
|
Exception |
getException() |
|
byte[] |
getExtraBytes() |
if complete, this will contain any bytes received as part of the
handshake that were after the actual handshake.
|
boolean |
getFailedBySkew() |
Was this connection failed because of clock skew?
|
int |
getVersion() |
Get the NTCP version
|
boolean |
isComplete() |
If synchronized on this, fails with
deadlocks from all over via CSFI.isEstablished().
|
boolean |
isCorrupt() |
did the handshake fail for some reason?
|
void |
prepareOutbound() |
Does nothing.
|
void |
receive(ByteBuffer src) |
parse the contents of the buffer as part of the handshake.
|
void receive(ByteBuffer src)
void prepareOutbound()
boolean getFailedBySkew()
boolean isCorrupt()
boolean isComplete()
byte[] getExtraBytes()
int getVersion()
void close(String reason, Exception e)
e
- may be nullString getError()
Exception getException()