public class SessionAdapter extends Object implements SessionListener
| Constructor and Description |
|---|
SessionAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
handshakeCompleted(Handshaker handshaker)
Indicates that a handshake with a given peer has been completed.
|
void |
handshakeFailed(Handshaker handshaker,
Throwable error)
Indicates that a handshake with a given peer has failed.
|
void |
handshakeFlightRetransmitted(Handshaker handshaker,
int flight)
Indicates that a handshake flight is retransmitted.
|
void |
handshakeStarted(Handshaker handshaker)
Indicates that a handshake for establishing a session with a peer has been started.
|
void |
sessionEstablished(Handshaker handshaker,
DTLSSession establishedSession)
Indicates that a session has successfully been established.
|
public void handshakeStarted(Handshaker handshaker) throws HandshakeException
SessionListenerhandshakeStarted in interface SessionListenerhandshaker - the handshaker used to establish the sessionHandshakeException - if the handshake cannot proceed due to e.g. system resource
limitationspublic void sessionEstablished(Handshaker handshaker, DTLSSession establishedSession) throws HandshakeException
SessionListenersessionEstablished in interface SessionListenerhandshaker - the handshaker used to establish the sessionestablishedSession - the session that has been negotiated by
the handshakerHandshakeException - if the listener cannot process the newly
established sessionpublic void handshakeCompleted(Handshaker handshaker)
SessionListenerhandshakeCompleted in interface SessionListenerhandshaker - the handshaker that has been completedpublic void handshakeFailed(Handshaker handshaker, Throwable error)
SessionListenerhandshakeFailed in interface SessionListenerhandshaker - the handshaker that has failederror - the error occurred during the handshakepublic void handshakeFlightRetransmitted(Handshaker handshaker, int flight)
SessionListenerhandshakeFlightRetransmitted in interface SessionListenerhandshaker - the handshaker that retransmits a flightflight - number of flight, which is retransmittedCopyright © 2023 Eclipse Foundation. All rights reserved.