com.sun.enterprise.mgmt.transport.grizzly.grizzly2
Class GrizzlyTCPMessageSender
java.lang.Object
com.sun.enterprise.mgmt.transport.AbstractMessageSender
com.sun.enterprise.mgmt.transport.grizzly.grizzly2.GrizzlyTCPMessageSender
- All Implemented Interfaces:
- MessageSender, ShoalMessageSender
public class GrizzlyTCPMessageSender
- extends AbstractMessageSender
- Author:
- Bongjae Chang
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrizzlyTCPMessageSender
public GrizzlyTCPMessageSender(org.glassfish.grizzly.nio.transport.TCPNIOTransport tcpNioTransport,
ConnectionCache connectionCache,
PeerID<GrizzlyPeerID> localPeerID,
long writeTimeoutMillis)
doSend
protected boolean doSend(PeerID peerID,
Message message)
throws IOException
- Description copied from class:
AbstractMessageSender
- Sends the given
Message to the destination
- Specified by:
doSend in class AbstractMessageSender
- 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.