Class Connection

java.lang.Object
me.tamkungz.nilkit.network.Connection

public final class Connection extends Object
  • Constructor Details

  • Method Details

    • getChannel

      public SocketChannel getChannel()
    • isOpen

      public boolean isOpen()
    • getReadBuffer

      public ByteBuffer getReadBuffer()
    • ensureReadBufferWritable

      public void ensureReadBufferWritable(int minWritableBytes)
    • enqueue

      public void enqueue(ByteBuffer buffer)
    • hasOutboundData

      public boolean hasOutboundData()
    • getPendingWriteCount

      public int getPendingWriteCount()
    • flushOutbound

      public void flushOutbound() throws IOException
      Throws:
      IOException