Class DefaultAcceptor

  • All Implemented Interfaces:
    Acceptor

    public class DefaultAcceptor
    extends java.lang.Object
    implements Acceptor
    • Field Detail

      • log

        private static final org.slf4j.Logger log
      • server

        private final Server server
    • Constructor Detail

      • DefaultAcceptor

        DefaultAcceptor​(Server server,
                        AcceptorConfig... configs)
                 throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • reconfigure

        public void reconfigure​(AcceptorConfig... configs)
                         throws java.io.IOException
        Specified by:
        reconfigure in interface Acceptor
        Throws:
        java.io.IOException
      • start

        public void start()
        Specified by:
        start in interface Acceptor
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface Acceptor
      • syncStart

        public void syncStart()
                       throws java.lang.InterruptedException
        Specified by:
        syncStart in interface Acceptor
        Throws:
        java.lang.InterruptedException