Class TcpWriter

java.lang.Object
services.moleculer.transporter.tcp.TcpWriter

public class TcpWriter extends Object
Packet sender Thread of the TCP Transporter.
  • Field Details

  • Constructor Details

  • Method Details

    • connect

      public void connect() throws Exception
      Throws:
      Exception
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • disconnect

      public void disconnect()
    • close

      public void close(String nodeID)
    • send

      public void send(String nodeID, byte[] packet)
    • append

      protected boolean append(String nodeID, SendBuffer buffer, byte[] packet)
    • openConnections

      public void openConnections()
    • sendPackets

      public void sendPackets()
    • cleanup

      protected void cleanup()
    • close

      protected void close(SelectionKey key, Exception cause)