Package ch.qos.logback.core.net.server
Interface RemoteReceiverClient
- All Superinterfaces:
AutoCloseable
,Client
,Closeable
,ContextAware
,Runnable
- All Known Implementing Classes:
RemoteReceiverStreamClient
A client of a
ServerRunner
that receives events from a local
appender and logs them according to local policy.-
Method Summary
Modifier and TypeMethodDescriptionboolean
offer
(Serializable event) Offers an event to the client.void
setQueue
(BlockingQueue<Serializable> queue) Sets the client's event queue.Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Method Details
-
setQueue
Sets the client's event queue.This method must be invoked before the
Runnable.run()
method is invoked.- Parameters:
queue
- the queue to set
-
offer
Offers an event to the client.- Parameters:
event
- the subject event- Returns:
true
if the client's queue accepted the event,false
if the client's queue is full
-