This interface exists primarily to allow the runner to be mocked for the purpose of unit testing the socket server implementation.
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ClientVisitor<T>
the subject visitor visitor)Presents each connected client to the given visitor. |
| public boolean | |
| public void |
| accept | back to summary |
|---|---|
| public void accept(ClientVisitor<T> visitor) Presents each connected client to the given visitor.
| |
| isRunning | back to summary |
|---|---|
| public boolean isRunning() Gets a flag indicating whether the server is currently running.
| |
| stop | back to summary |
|---|---|
| public void stop() throws IOException Stops execution of the runner. 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. | |