Package ch.qos.logback.core.net.server
Interface ServerRunner<T extends Client>
- All Superinterfaces:
ContextAware
,Runnable
- All Known Implementing Classes:
ConcurrentServerRunner
@Deprecated(since="2022-01-27")
public interface ServerRunner<T extends Client>
extends ContextAware, Runnable
Deprecated.
This internal logback API is not supported by AEM as a Cloud Service.
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
Modifier and TypeMethodDescriptionvoid
accept
(ClientVisitor<T> visitor) Deprecated.Presents each connected client to the given visitor.boolean
Deprecated.Gets a flag indicating whether the server is currently running.void
stop()
Deprecated.Stops execution of the runner.Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Method Details
-
isRunning
boolean isRunning()Deprecated.Gets a flag indicating whether the server is currently running.- Returns:
- flag state
-
stop
Deprecated.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.
- Throws:
IOException
-
accept
Deprecated.Presents each connected client to the given visitor.- Parameters:
visitor
- the subject visitor
-