public class GrizzlyTCPMessageSender extends AbstractMessageSender
localPeerIDTCP_TRANSPORT, UDP_TRANSPORT| Constructor and Description |
|---|
GrizzlyTCPMessageSender(org.glassfish.grizzly.nio.transport.TCPNIOTransport tcpNioTransport,
ConnectionCache connectionCache,
PeerID<GrizzlyPeerID> localPeerID,
long writeTimeoutMillis) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doSend(PeerID peerID,
Message message)
Sends the given
Message to the destination |
send, start, stoppublic GrizzlyTCPMessageSender(org.glassfish.grizzly.nio.transport.TCPNIOTransport tcpNioTransport,
ConnectionCache connectionCache,
PeerID<GrizzlyPeerID> localPeerID,
long writeTimeoutMillis)
protected boolean doSend(PeerID peerID, Message message) throws IOException
AbstractMessageSenderMessage to the destinationdoSend in class AbstractMessageSenderpeerID - 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.