Package one.nio.server.acceptor
Interface Acceptor
-
- All Known Implementing Classes:
DefaultAcceptor,MultiAcceptor
public interface Acceptor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetAcceptedSessions()longgetRejectedSessions()intgetSinglePort()voidreconfigure(AcceptorConfig... configs)voidresetCounters()voidshutdown()voidstart()voidsyncStart()
-
-
-
Method Detail
-
reconfigure
void reconfigure(AcceptorConfig... configs) throws java.io.IOException
- Throws:
java.io.IOException
-
start
void start()
-
shutdown
void shutdown()
-
syncStart
void syncStart() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
getAcceptedSessions
long getAcceptedSessions()
-
getRejectedSessions
long getRejectedSessions()
-
resetCounters
void resetCounters()
-
getSinglePort
int getSinglePort()
-
-