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

pack-priv Interface RemoteReceiverClient

extends Client, ContextAware
Known Direct Implementers
ch.qos.logback.core.net.server.RemoteReceiverStreamClient
Imports
java.io.Serializable, java.util.concurrent.BlockingQueue, ch.qos.logback.core.spi.ContextAware

A client of a ServerRunner that receives events from a local appender and logs them according to local policy.
Author
Carl Harris

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the client's queue accepted the event, false if the client's queue is full
offer
(Serializable
the subject event
event
)

Offers an event to the client.

public void
setQueue(BlockingQueue<Serializable>
the queue to set
queue
)

Sets the client's event queue.

Inherited from ch.qos.logback.core.net.server.Client:
close
Inherited from ch.qos.logback.core.spi.ContextAware:
addErroraddErroraddInfoaddInfoaddStatusaddWarnaddWarngetContextsetContext

Method Detail

offerback to summary
public boolean offer(Serializable event)

Offers an event to the client.

Parameters
event:Serializable

the subject event

Returns:boolean

true if the client's queue accepted the event, false if the client's queue is full

setQueueback to summary
public void setQueue(BlockingQueue<Serializable> queue)

Sets the client's event queue.

This method must be invoked before the run() method is invoked.

Parameters
queue:BlockingQueue<Serializable>

the queue to set