Class ConnectHandler.UpstreamConnection

All Implemented Interfaces:
Closeable, AutoCloseable, EventListener, javax.servlet.AsyncListener, Connection
Enclosing class:
ConnectHandler

public class ConnectHandler.UpstreamConnection extends ProxyConnection implements javax.servlet.AsyncListener
  • Constructor Details

  • Method Details

    • onOpen

      public void onOpen()
      Description copied from interface: Connection

      Callback method invoked when this connection is opened.

      Creators of the connection implementation are responsible for calling this method.

      Specified by:
      onOpen in interface Connection
      Overrides:
      onOpen in class AbstractConnection
    • read

      protected int read(EndPoint endPoint, ByteBuffer buffer) throws IOException
      Specified by:
      read in class ProxyConnection
      Throws:
      IOException
    • write

      protected void write(EndPoint endPoint, ByteBuffer buffer, Callback callback)
      Specified by:
      write in class ProxyConnection
    • onComplete

      public void onComplete(javax.servlet.AsyncEvent event)
      Specified by:
      onComplete in interface javax.servlet.AsyncListener
    • onTimeout

      public void onTimeout(javax.servlet.AsyncEvent event)
      Specified by:
      onTimeout in interface javax.servlet.AsyncListener
    • onError

      public void onError(javax.servlet.AsyncEvent event)
      Specified by:
      onError in interface javax.servlet.AsyncListener
    • onStartAsync

      public void onStartAsync(javax.servlet.AsyncEvent event)
      Specified by:
      onStartAsync in interface javax.servlet.AsyncListener