com.sun.enterprise.mgmt.transport
Interface MessageSender
- All Superinterfaces:
- ShoalMessageSender
- All Known Subinterfaces:
- NetworkManager
- All Known Implementing Classes:
- AbstractMessageSender, AbstractMultiMessageSender, AbstractNetworkManager, GrizzlyNetworkManager, GrizzlyNetworkManager1_9, GrizzlyNetworkManager2, GrizzlyTCPConnectorWrapper, GrizzlyTCPMessageSender, GrizzlyUDPConnectorWrapper, JxtaNetworkManager, JxtaPipeManagerWrapper
public interface MessageSender
- extends ShoalMessageSender
This interface is for sending a Message to the specific destination
This interface can be implemented for only TCP or only UDP or both TCP and UDP transport layer
- Author:
- Bongjae Chang
send
boolean send(PeerID peerID,
Message message)
throws IOException
- Sends the given
Message to the destination
- Parameters:
peerID - the destination PeerID. null is not allowedmessage - a message which is sent to the peer
- Returns:
- true if the message is sent to the destination successfully, otherwise false
- Throws:
IOException - if I/O error occurs or given parameters are not valid
Copyright © 2012. All Rights Reserved.