Top Description Methods
ch.qos.logback.core.net.server

public Interface ServerRunner<T extends ch.qos.logback.core.net.server.Client>

extends ContextAware, Runnable
Known Direct Implementers
ch.qos.logback.core.net.server.ConcurrentServerRunner
Imports
java.io.IOException, ch.qos.logback.core.spi.ContextAware

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.

Author
Carl Harris

Method Summary

Modifier and TypeMethod and Description
public void
accept(ClientVisitor<T>
the subject visitor
visitor
)

Presents each connected client to the given visitor.

public boolean

Returns:

flag state
isRunning
()

Gets a flag indicating whether the server is currently running.

public void
stop()

Stops execution of the runner.

Inherited from ch.qos.logback.core.spi.ContextAware:
addErroraddErroraddInfoaddInfoaddStatusaddWarnaddWarngetContextsetContext
Inherited from java.lang.Runnable:
run

Method Detail

acceptback to summary
public void accept(ClientVisitor<T> visitor)

Presents each connected client to the given visitor.

Parameters
visitor:ClientVisitor<T>

the subject visitor

isRunningback to summary
public boolean isRunning()

Gets a flag indicating whether the server is currently running.

Returns:boolean

flag state

stopback 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.