public interface MessageCallback
| Modifier and Type | Method and Description |
|---|---|
void |
onConnecting()
Called, when connector requires to establish a connection.
|
void |
onContextEstablished(EndpointContext context)
Called when the context information for an outbound message has been
established.
|
void |
onDtlsRetransmission(int flight)
Called, when the dtls connector retransmits a handshake flight.
|
void |
onError(Throwable error)
Called, when message was not sent by the connector.
|
void |
onSent()
Called after message was sent by the connector.
|
void onConnecting()
void onDtlsRetransmission(int flight)
flight - 1 ... 6, number of retransmitted flight.void onContextEstablished(EndpointContext context)
The information contained in the context object depends on the particular transport layer used to send the message. For a transport using DTLS the context will include e.g. the DTLS session's ID, epoch number and cipher that is used for sending the message to the peer.
Note: usually this callback must be processed in a synchronous manner, because if it returns, the message is sent. Therefore take special care in methods called on this callback.context - transport specific properties describing the context in
which the message is sentvoid onSent()
void onError(Throwable error)
error - details for not sending the message.Copyright © 2019 Eclipse Foundation. All rights reserved.