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 java.lang.Object implements AppenderAttachable<E>
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.A ReentrantReadWriteLock based implementation of theAppenderAttachable
interface.
-
-
Constructor Summary
Constructors Constructor Description AppenderAttachableImpl()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addAppender(Appender<E> newAppender)
Deprecated.Attach an appender.int
appendLoopOnAppenders(E e)
Deprecated.Call thedoAppend
method on all attached appenders.void
detachAndStopAllAppenders()
Deprecated.Remove and processPriorToRemoval all previously attached appenders.boolean
detachAppender(Appender<E> appender)
Deprecated.Remove the appender passed as parameter form the list of attached appenders.boolean
detachAppender(java.lang.String name)
Deprecated.Remove the appender with the name passed as parameter form the list of appenders.Appender<E>
getAppender(java.lang.String name)
Deprecated.Look for an attached appender named asname
.boolean
isAttached(Appender<E> appender)
Deprecated.Returnstrue
if the specified appender is in the list of attached appenders,false
otherwise.java.util.Iterator<Appender<E>>
iteratorForAppenders()
Deprecated.Get all attached appenders as an Enumeration.
-
-
-
Method Detail
-
addAppender
public void addAppender(Appender<E> newAppender)
Deprecated.Attach an appender. If the appender is already in the list in won't be added again.- Specified by:
addAppender
in interfaceAppenderAttachable<E>
-
appendLoopOnAppenders
public int appendLoopOnAppenders(E e)
Deprecated.Call thedoAppend
method on all attached appenders.
-
iteratorForAppenders
public java.util.Iterator<Appender<E>> iteratorForAppenders()
Deprecated.Get all attached appenders as an Enumeration. If there are no attached appendersnull
is returned.- Specified by:
iteratorForAppenders
in interfaceAppenderAttachable<E>
- Returns:
- Iterator An iterator of attached appenders.
-
getAppender
public Appender<E> getAppender(java.lang.String name)
Deprecated.Look for an attached appender named asname
.Return the appender with that name if in the list. Return null otherwise.
- Specified by:
getAppender
in interfaceAppenderAttachable<E>
-
isAttached
public boolean isAttached(Appender<E> appender)
Deprecated.Returnstrue
if the specified appender is in the list of attached appenders,false
otherwise.- Specified by:
isAttached
in interfaceAppenderAttachable<E>
- Since:
- 1.2
-
detachAndStopAllAppenders
public void detachAndStopAllAppenders()
Deprecated.Remove and processPriorToRemoval all previously attached appenders.- Specified by:
detachAndStopAllAppenders
in interfaceAppenderAttachable<E>
-
detachAppender
public boolean detachAppender(Appender<E> appender)
Deprecated.Remove the appender passed as parameter form the list of attached appenders.- Specified by:
detachAppender
in interfaceAppenderAttachable<E>
-
detachAppender
public boolean detachAppender(java.lang.String name)
Deprecated.Remove the appender with the name passed as parameter form the list of appenders.- Specified by:
detachAppender
in interfaceAppenderAttachable<E>
-
-