|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.logging.log4j.spi.MutableThreadContextStack
public class MutableThreadContextStack
| Constructor Summary | |
|---|---|
MutableThreadContextStack(List<String> list)
|
|
| Method Summary | ||
|---|---|---|
boolean |
add(String s)
|
|
boolean |
addAll(Collection<? extends String> strings)
|
|
List<String> |
asList()
Returns all the elements in the stack in a List. |
|
void |
clear()
Clears all elements from the stack. |
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> objects)
|
|
ThreadContextStack |
copy()
Returns a copy of the ContextStack. |
|
int |
getDepth()
Returns the number of elements in the stack. |
|
boolean |
isEmpty()
|
|
Iterator<String> |
iterator()
|
|
String |
peek()
Returns the element at the top of the stack without removing it or null if the stack is empty. |
|
String |
pop()
Returns the element at the top of the stack. |
|
void |
push(String message)
Add an element to the stack. |
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection<?> objects)
|
|
boolean |
retainAll(Collection<?> objects)
|
|
int |
size()
|
|
Object[] |
toArray()
|
|
|
toArray(T[] ts)
|
|
String |
toString()
|
|
void |
trim(int depth)
Trims elements from the end of the stack. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public MutableThreadContextStack(List<String> list)
| Method Detail |
|---|
public String pop()
ThreadContext.ContextStack
pop in interface ThreadContext.ContextStackpublic String peek()
ThreadContext.ContextStack
peek in interface ThreadContext.ContextStackpublic void push(String message)
ThreadContext.ContextStack
push in interface ThreadContext.ContextStackmessage - The element to add.public int getDepth()
ThreadContext.ContextStack
getDepth in interface ThreadContext.ContextStackpublic List<String> asList()
ThreadContext.ContextStack
asList in interface ThreadContext.ContextStackpublic void trim(int depth)
ThreadContext.ContextStack
trim in interface ThreadContext.ContextStackdepth - The maximum number of items in the stack to keep.public ThreadContextStack copy()
ThreadContext.ContextStack
copy in interface ThreadContext.ContextStackpublic void clear()
ThreadContext.ContextStack
clear in interface Collection<String>clear in interface ThreadContext.ContextStackpublic int size()
size in interface Collection<String>public boolean isEmpty()
isEmpty in interface Collection<String>public boolean contains(Object o)
contains in interface Collection<String>public Iterator<String> iterator()
iterator in interface Iterable<String>iterator in interface Collection<String>public Object[] toArray()
toArray in interface Collection<String>public <T> T[] toArray(T[] ts)
toArray in interface Collection<String>public boolean add(String s)
add in interface Collection<String>public boolean remove(Object o)
remove in interface Collection<String>public boolean containsAll(Collection<?> objects)
containsAll in interface Collection<String>public boolean addAll(Collection<? extends String> strings)
addAll in interface Collection<String>public boolean removeAll(Collection<?> objects)
removeAll in interface Collection<String>public boolean retainAll(Collection<?> objects)
retainAll in interface Collection<String>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1999-2013 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.