Interface MessageSender
-
- All Superinterfaces:
ShoalMessageSender
- All Known Subinterfaces:
NetworkManager
- All Known Implementing Classes:
AbstractMessageSender,AbstractMultiMessageSender,AbstractNetworkManager,GrizzlyNetworkManager,GrizzlyNetworkManager2,GrizzlyTCPMessageSender,JxtaNetworkManager,JxtaPipeManagerWrapper
public interface MessageSender extends ShoalMessageSender
This interface is for sending aMessageto the specific destination This interface can be implemented for only TCP or only UDP or both TCP and UDP transport layer- Author:
- Bongjae Chang
-
-
Field Summary
-
Fields inherited from interface com.sun.enterprise.mgmt.transport.ShoalMessageSender
TCP_TRANSPORT, UDP_TRANSPORT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleansend(PeerID peerID, Message message)Sends the givenMessageto the destination-
Methods inherited from interface com.sun.enterprise.mgmt.transport.ShoalMessageSender
start, stop
-
-
-
-
Method Detail
-
send
boolean send(PeerID peerID, Message message) throws java.io.IOException
Sends the givenMessageto the destination- Parameters:
peerID- the destinationPeerID.nullis not allowedmessage- a message which is sent to the peer- Returns:
- true if the message is sent to the destination successfully, otherwise false
- Throws:
java.io.IOException- if I/O error occurs or given parameters are not valid
-
-