|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServerRunner<T extends Client>
An object that is responsible for the asynchronous execution of a socket server.
This interface exists primarily to allow the runner to be mocked for the purpose of unit testing the socket server implementation.
| Method Summary | |
|---|---|
void |
accept(ClientVisitor<T> visitor)
Presents each connected client to the given visitor. |
boolean |
isRunning()
Gets a flag indicating whether the server is currently running. |
void |
stop()
Stops execution of the runner. |
| Methods inherited from interface ch.qos.logback.core.spi.ContextAware |
|---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Method Detail |
|---|
boolean isRunning()
void stop()
throws IOException
This method must cause all I/O and thread resources associated with the runner to be released. If the receiver has not been started, this method must have no effect.
IOExceptionvoid accept(ClientVisitor<T> visitor)
visitor - the subject visitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||