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
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.mgmt.transport.AbstractMessageSender
localPeerID
-
Fields inherited from interface com.sun.enterprise.mgmt.transport.ShoalMessageSender
TCP_TRANSPORT, UDP_TRANSPORT
-
-
Constructor Summary
Constructors Constructor Description GrizzlyTCPMessageSender(org.glassfish.grizzly.nio.transport.TCPNIOTransport tcpNioTransport, ConnectionCache connectionCache, PeerID<GrizzlyPeerID> localPeerID, long writeTimeoutMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoSend(PeerID peerID, Message message)Sends the givenMessageto the destination-
Methods inherited from class com.sun.enterprise.mgmt.transport.AbstractMessageSender
send, start, stop
-
-
-
-
Constructor Detail
-
GrizzlyTCPMessageSender
public GrizzlyTCPMessageSender(org.glassfish.grizzly.nio.transport.TCPNIOTransport tcpNioTransport, ConnectionCache connectionCache, PeerID<GrizzlyPeerID> localPeerID, long writeTimeoutMillis)
-
-
Method Detail
-
doSend
protected boolean doSend(PeerID peerID, Message message) throws java.io.IOException
Description copied from class:AbstractMessageSenderSends the givenMessageto the destination- Specified by:
doSendin classAbstractMessageSender- 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
-
-