public interface MessageSender extends ShoalMessageSender
Message to the specific destination
This interface can be implemented for only TCP or only UDP or both TCP and UDP transport layerTCP_TRANSPORT, UDP_TRANSPORT| Modifier and Type | Method and Description |
|---|---|
boolean |
send(PeerID peerID,
Message message)
Sends the given
Message to the destination |
start, stopboolean send(PeerID peerID, Message message) throws IOException
Message to the destinationpeerID - the destination PeerID. null is not allowedmessage - a message which is sent to the peerIOException - if I/O error occurs or given parameters are not validCopyright © 2017–2020 Eclipse Foundation. All rights reserved.