| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static String | Returns: the current value set ornull if no value was setRetrieves the current values set for the nested diagnostics context. |
| public static int | Returns: the current depth of the stackThe current depth of the nested diagnostics context. |
| public static String | |
| public static String | Returns: the top value from the stack or an empty string if no value was setPops top value from the stack and returns it. |
| public static void | |
| public static void | setMaxDepth(int
the maximum depth to set maxDepth)Sets maximum depth of the stack removing any entries below the maximum depth. |
| NDC | back to summary |
|---|---|
| private NDC() | |
| clear | back to summary |
|---|---|
| public static void clear() Clears the nested diagnostics context. | |
| get | back to summary |
|---|---|
| public static String get() Retrieves the current values set for the nested diagnostics context.
| |
| getDepth | back to summary |
|---|---|
| public static int getDepth() The current depth of the nested diagnostics context.
| |
| peek | back to summary |
|---|---|
| public static String peek() Peeks at the top value from the stack and returns it.
| |
| pop | back to summary |
|---|---|
| public static String pop() Pops top value from the stack and returns it.
| |
| push | back to summary |
|---|---|
| public static void push(String message) Pushes a value to the nested diagnostics context stack.
| |
| setMaxDepth | back to summary |
|---|---|
| public static void setMaxDepth(int maxDepth) Sets maximum depth of the stack removing any entries below the maximum depth.
| |