Package ch.qos.logback.core.spi
Class AppenderAttachableImpl<E>
java.lang.Object
ch.qos.logback.core.spi.AppenderAttachableImpl<E>
- All Implemented Interfaces:
AppenderAttachable<E>
@Deprecated(since="2022-01-27")
public class AppenderAttachableImpl<E>
extends Object
implements AppenderAttachable<E>
Deprecated.
This internal logback API is not supported by AEM as a Cloud Service.
A ReentrantReadWriteLock based implementation of the
AppenderAttachable interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAppender(Appender<E> newAppender) Deprecated.Attach an appender.intDeprecated.Call thedoAppendmethod on all attached appenders.voidDeprecated.Remove and processPriorToRemoval all previously attached appenders.booleandetachAppender(Appender<E> appender) Deprecated.Remove the appender passed as parameter form the list of attached appenders.booleandetachAppender(String name) Deprecated.Remove the appender with the name passed as parameter form the list of appenders.getAppender(String name) Deprecated.Look for an attached appender named asname.booleanisAttached(Appender<E> appender) Deprecated.Returnstrueif the specified appender is in the list of attached appenders,falseotherwise.Deprecated.Get all attached appenders as an Enumeration.
-
Constructor Details
-
AppenderAttachableImpl
public AppenderAttachableImpl()Deprecated.
-
-
Method Details
-
addAppender
Deprecated.Attach an appender. If the appender is already in the list in won't be added again.- Specified by:
addAppenderin interfaceAppenderAttachable<E>
-
appendLoopOnAppenders
Deprecated.Call thedoAppendmethod on all attached appenders. -
iteratorForAppenders
Deprecated.Get all attached appenders as an Enumeration. If there are no attached appendersnullis returned.- Specified by:
iteratorForAppendersin interfaceAppenderAttachable<E>- Returns:
- Iterator An iterator of attached appenders.
-
getAppender
Deprecated.Look for an attached appender named asname.Return the appender with that name if in the list. Return null otherwise.
- Specified by:
getAppenderin interfaceAppenderAttachable<E>
-
isAttached
Deprecated.Returnstrueif the specified appender is in the list of attached appenders,falseotherwise.- Specified by:
isAttachedin interfaceAppenderAttachable<E>- Since:
- 1.2
-
detachAndStopAllAppenders
public void detachAndStopAllAppenders()Deprecated.Remove and processPriorToRemoval all previously attached appenders.- Specified by:
detachAndStopAllAppendersin interfaceAppenderAttachable<E>
-
detachAppender
Deprecated.Remove the appender passed as parameter form the list of attached appenders.- Specified by:
detachAppenderin interfaceAppenderAttachable<E>
-
detachAppender
Deprecated.Remove the appender with the name passed as parameter form the list of appenders.- Specified by:
detachAppenderin interfaceAppenderAttachable<E>
-