Class ThreadContext.NoOpThreadContextStack
java.lang.Object
java.util.AbstractCollection<String>
org.apache.logging.log4j.ThreadContext.EmptyThreadContextStack
org.apache.logging.log4j.ThreadContext.NoOpThreadContextStack
- All Implemented Interfaces:
Serializable, Iterable<String>, Collection<String>, ThreadContextStack, ThreadContext.ContextStack
- Enclosing class:
ThreadContext
private static final class ThreadContext.NoOpThreadContextStack
extends ThreadContext.EmptyThreadContextStack
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends String> ignored) voidPushes an element onto the stack.booleanbooleanremoveAll(Collection<?> ignored) booleanretainAll(Collection<?> ignored) Methods inherited from class ThreadContext.EmptyThreadContextStack
asList, clear, containsAll, copy, equals, getDepth, getImmutableStackOrNull, hashCode, iterator, peek, pop, size, toArray, trimMethods inherited from class AbstractCollection
contains, isEmpty, toArray, toStringMethods inherited from interface Collection
contains, isEmpty, parallelStream, removeIf, spliterator, stream, toArray, toArray
-
Constructor Details
-
NoOpThreadContextStack
private NoOpThreadContextStack()
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<String>- Overrides:
addin classThreadContext.EmptyThreadContextStack
-
addAll
- Specified by:
addAllin interfaceCollection<String>- Overrides:
addAllin classThreadContext.EmptyThreadContextStack
-
push
Description copied from interface:ThreadContext.ContextStackPushes an element onto the stack.- Specified by:
pushin interfaceThreadContext.ContextStack- Overrides:
pushin classThreadContext.EmptyThreadContextStack- Parameters:
ignored- The element to add.
-
remove
- Specified by:
removein interfaceCollection<String>- Overrides:
removein classAbstractCollection<String>
-
removeAll
- Specified by:
removeAllin interfaceCollection<String>- Overrides:
removeAllin classThreadContext.EmptyThreadContextStack
-
retainAll
- Specified by:
retainAllin interfaceCollection<String>- Overrides:
retainAllin classThreadContext.EmptyThreadContextStack
-