|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.classic.net.ReceiverBase
public abstract class ReceiverBase
An abstract base for components that receive logging events from a remote peer and log according to local policy
Field Summary |
---|
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase |
---|
context |
Constructor Summary | |
---|---|
ReceiverBase()
|
Method Summary | |
---|---|
protected abstract Runnable |
getRunnableTask()
Provides the runnable task this receiver will execute. |
boolean |
isStarted()
|
protected abstract void |
onStop()
Allows a subclass to participate in receiver shutdown. |
protected abstract boolean |
shouldStart()
Determines whether this receiver should start. |
void |
start()
|
void |
stop()
|
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReceiverBase()
Method Detail |
---|
public final void start()
start
in interface LifeCycle
public final void stop()
stop
in interface LifeCycle
public final boolean isStarted()
isStarted
in interface LifeCycle
protected abstract boolean shouldStart()
Subclasses will implement this method to do any subclass-specific
validation. The subclass's getRunnableTask()
method will be
invoked (and the task returned will be submitted to the executor)
if and only if this method returns true
protected abstract void onStop()
protected abstract Runnable getRunnableTask()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |