Class OutboundConnections


  • public class OutboundConnections
    extends java.lang.Object
    Groups a set of outbound connections to a given peer, and routes outgoing messages to the appropriate connection (based upon message's type or size). Contains a OutboundConnection for each of the ConnectionType types.
    • Method Detail

      • enqueue

        public void enqueue​(Message msg,
                            ConnectionType type)
                     throws java.nio.channels.ClosedChannelException
        Select the appropriate connection for the provided message and use it to send the message.
        Throws:
        java.nio.channels.ClosedChannelException
      • usingReserveBytes

        public long usingReserveBytes()