Class DefaultAcceptorGroup


  • class DefaultAcceptorGroup
    extends java.lang.Object
    • Field Detail

      • server

        private final Server server
      • address

        private final java.lang.String address
      • port

        private final int port
      • syncLatch

        java.util.concurrent.CountDownLatch syncLatch
    • Constructor Detail

      • DefaultAcceptorGroup

        public DefaultAcceptorGroup​(Server server,
                                    AcceptorConfig ac)
                             throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • reconfigure

        public void reconfigure​(AcceptorConfig ac)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • isSameAddressPort

        public boolean isSameAddressPort​(AcceptorConfig ac)
      • start

        public void start()
      • syncStart

        public void syncStart()
                       throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shutdown

        public void shutdown()
      • getAddress

        public java.lang.String getAddress()
      • getPort

        public int getPort()
      • size

        public int size()
      • getAcceptedSessions

        public long getAcceptedSessions()
      • getRejectedSessions

        public long getRejectedSessions()
      • resetCounters

        public void resetCounters()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object