Package one.nio.server.acceptor
Interface Acceptor
- All Known Implementing Classes:
DefaultAcceptor,MultiAcceptor
public interface Acceptor
-
Method Summary
Modifier and TypeMethodDescriptionlonglongintvoidreconfigure(AcceptorConfig... configs) voidvoidshutdown()voidstart()void
-
Method Details
-
reconfigure
- Throws:
IOException
-
start
void start() -
shutdown
void shutdown() -
syncStart
- Throws:
InterruptedException
-
getAcceptedSessions
long getAcceptedSessions() -
getRejectedSessions
long getRejectedSessions() -
resetCounters
void resetCounters() -
getSinglePort
int getSinglePort()
-