Class AcceptorImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String CONNECTION_ACCEPTOR_KEY  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AcceptorImpl​(Reactor reactor, java.lang.String host, int port, Handler handler)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Record attachments()  
      void close()
      Closes the acceptor, stopping it accepting any further in-bound connections.
      void free()
      Frees any resources associated with this child.
      int getPortNumber()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CONNECTION_ACCEPTOR_KEY

        protected static final java.lang.String CONNECTION_ACCEPTOR_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • AcceptorImpl

        protected AcceptorImpl​(Reactor reactor,
                               java.lang.String host,
                               int port,
                               Handler handler)
                        throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
        Description copied from interface: Acceptor
        Closes the acceptor, stopping it accepting any further in-bound connections. Already accepted connections continue to be processed by the associated reactor.
        Specified by:
        close in interface Acceptor
      • getPortNumber

        public int getPortNumber()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • free

        public void free()
        Description copied from interface: ReactorChild
        Frees any resources associated with this child.
        Specified by:
        free in interface ReactorChild