public interface ServerRunner<T extends Client> extends ContextAware, java.lang.Runnable
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 |
---|---|
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.
|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
boolean isRunning()
void stop() throws java.io.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.
java.io.IOException
void accept(ClientVisitor<T> visitor)
visitor
- the subject visitorCopyright © 2010 - 2020 Adobe. All Rights Reserved