Class GrizzlyTCPMessageSender

    • 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: AbstractMessageSender
        Sends the given Message to the destination
        Specified by:
        doSend in class AbstractMessageSender
        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:
        java.io.IOException - if I/O error occurs or given parameters are not valid