Package ch.qos.logback.core.net.server
Interface RemoteReceiverClient
-
- All Superinterfaces:
java.lang.AutoCloseable,Client,java.io.Closeable,ContextAware,java.lang.Runnable
- All Known Implementing Classes:
RemoteReceiverStreamClient
interface RemoteReceiverClient extends Client, ContextAware
A client of aServerRunnerthat receives events from a local appender and logs them according to local policy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanoffer(java.io.Serializable event)Offers an event to the client.voidsetQueue(java.util.concurrent.BlockingQueue<java.io.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 Detail
-
setQueue
void setQueue(java.util.concurrent.BlockingQueue<java.io.Serializable> queue)
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
boolean offer(java.io.Serializable event)
Offers an event to the client.- Parameters:
event- the subject event- Returns:
trueif the client's queue accepted the event,falseif the client's queue is full
-
-