Package one.nio.server.acceptor
Class DefaultAcceptorGroup
java.lang.Object
one.nio.server.acceptor.DefaultAcceptorGroup
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AcceptorThread[]private final Stringprivate final intprivate final Server(package private) CountDownLatch -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
server
-
address
-
port
private final int port -
acceptors
-
syncLatch
CountDownLatch syncLatch
-
-
Constructor Details
-
DefaultAcceptorGroup
- Throws:
IOException
-
-
Method Details
-
reconfigure
- Throws:
IOException
-
isSameAddressPort
-
start
public void start() -
syncStart
- Throws:
InterruptedException
-
shutdown
public void shutdown() -
getAddress
-
getPort
public int getPort() -
size
public int size() -
getAcceptedSessions
public long getAcceptedSessions() -
getRejectedSessions
public long getRejectedSessions() -
resetCounters
public void resetCounters() -
toString
-