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

pack-priv Class RemoteReceiverServerRunner

extends ConcurrentServerRunner<RemoteReceiverClient>
Class Inheritance
Imports
java.io.Serializable, java.util.concurrent.ArrayBlockingQueue, .Executor

A ServerRunner that listens for connections from remote receiver component clients and delivers logging events to all connected clients.
Author
Carl Harris

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public
RemoteReceiverServerRunner(ServerListener<RemoteReceiverClient>
the listener from which the server will accept new clients
listener
,
Executor
that will be used to execute asynchronous tasks on behalf of the runner.
executor
,
int
size of the event queue that will be maintained for each client
clientQueueSize
)

Constructs a new server runner.

Method Summary

Modifier and TypeMethod and Description
protected boolean
configureClient(RemoteReceiverClient
the subject client
client
)

Implements abstract ch.qos.logback.core.net.server.ConcurrentServerRunner.configureClient.

Configures a connected client.
Inherited from ch.qos.logback.core.net.server.ConcurrentServerRunner:
acceptisRunningrunsetRunningstop

Field Detail

clientQueueSizeback to summary
private final int clientQueueSize

Constructor Detail

RemoteReceiverServerRunnerback to summary
public RemoteReceiverServerRunner(ServerListener<RemoteReceiverClient> listener, Executor executor, int clientQueueSize)

Constructs a new server runner.

Parameters
listener:ServerListener<RemoteReceiverClient>

the listener from which the server will accept new clients

executor:Executor

that will be used to execute asynchronous tasks on behalf of the runner.

clientQueueSize:int

size of the event queue that will be maintained for each client

Method Detail

configureClientback to summary
protected boolean configureClient(RemoteReceiverClient client)

Implements abstract ch.qos.logback.core.net.server.ConcurrentServerRunner.configureClient.

Doc from ch.qos.logback.core.net.server.ConcurrentServerRunner.configureClient.

Configures a connected client.

A subclass implements this method to perform any necessary configuration of the client object before its Client#run() method is invoked.

Parameters
client:RemoteReceiverClient

the subject client

Returns:boolean

true if configuration was successful; if the return value is false the client connection will be dropped

Annotations
@Override