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

Field Summary
 
Fields inherited from interface com.sun.enterprise.mgmt.transport.ShoalMessageSender
TCP_TRANSPORT, UDP_TRANSPORT
 
Method Summary
 boolean send(PeerID peerID, Message message)
          Sends the given Message to the destination
 
Methods inherited from interface com.sun.enterprise.mgmt.transport.ShoalMessageSender
start, stop
 

Method Detail

send

boolean send(PeerID peerID,
             Message message)
             throws IOException
Sends the given Message to the destination

Parameters:
peerID - the destination PeerID. null is not allowed
message - 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.