public final class NDC extends Object
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Clears the nested diagnostics context.
|
static String |
get()
Retrieves the current values set for the nested diagnostics context.
|
static int |
getDepth()
The current depth of the nested diagnostics context.
|
static String |
peek()
Peeks at the top value from the stack and returns it.
|
static String |
pop()
Pops top value from the stack and returns it.
|
static void |
push(String message)
Pushes a value to the nested diagnostics context stack.
|
static void |
setMaxDepth(int maxDepth)
Sets maximum depth of the stack removing any entries below the maximum depth.
|
public static void clear()
public static String get()
null
if no value was setpublic static int getDepth()
public static String pop()
public static String peek()
public static void push(String message)
message
- the message to pushpublic static void setMaxDepth(int maxDepth)
maxDepth
- the maximum depth to setCopyright © 2019 JBoss by Red Hat. All rights reserved.