|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ThreadContext.ContextStack
The ThreadContext Stack interface.
Method Summary | |
---|---|
List<String> |
asList()
Returns all the elements in the stack in a List. |
void |
clear()
Clears all elements from the stack. |
ThreadContext.ContextStack |
copy()
Returns a copy of the ContextStack. |
int |
getDepth()
Return the number of elements in the stack. |
String |
peek()
Return the element at the top of the stack without removing it or null if the stack is empty. |
String |
pop()
Return the element at the top of the stack. |
void |
push(String message)
Add an element to the stack. |
void |
trim(int depth)
Trims elements from the end of the stack. |
Method Detail |
---|
void clear()
String pop()
NoSuchElementException
- if the stack is empty.String peek()
void push(String message)
message
- The element to add.int getDepth()
List<String> asList()
void trim(int depth)
depth
- The maximum number of items in the stack to keep.ThreadContext.ContextStack copy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |