- peek() - Method in class cn.sliew.milky.thread.context.DefaultThreadContextStack
-
- peek() - Method in class cn.sliew.milky.thread.context.MutableThreadContextStack
-
- peek() - Method in class cn.sliew.milky.thread.SizeBlockingQueue
-
- peek() - Static method in class cn.sliew.milky.thread.ThreadContext
-
Looks at the last diagnostic context at the top of this NDC without removing it.
- peek() - Method in class cn.sliew.milky.thread.ThreadContextStack.EmptyThreadContextStack
-
- peek() - Method in interface cn.sliew.milky.thread.ThreadContextStack
-
Returns the element at the top of the stack without removing it or null if the stack is empty.
- poll() - Method in class cn.sliew.milky.thread.SizeBlockingQueue
-
- poll(long, TimeUnit) - Method in class cn.sliew.milky.thread.SizeBlockingQueue
-
- pop() - Method in class cn.sliew.milky.thread.context.DefaultThreadContextStack
-
- pop() - Method in class cn.sliew.milky.thread.context.MutableThreadContextStack
-
- pop() - Static method in class cn.sliew.milky.thread.ThreadContext
-
Returns the value of the last item placed on the stack.
- pop() - Method in class cn.sliew.milky.thread.ThreadContextStack.EmptyThreadContextStack
-
- pop() - Method in interface cn.sliew.milky.thread.ThreadContextStack
-
Returns the element at the top of the stack.
- preserveContext() - Method in class cn.sliew.milky.thread.context.DefaultThreadContextMap
-
- preserveContext() - Method in class cn.sliew.milky.thread.context.DefaultThreadContextStack
-
preserve context for later store then clear current thread context stack.
- preserveContext() - Method in class cn.sliew.milky.thread.context.MutableThreadContextStack
-
- preserveContext() - Method in class cn.sliew.milky.thread.ThreadContext
-
// current context is stored and replaced with a default context
try (StoredContext context = threadContext.preserveContext()) {
// execute();
}
// previous context is restored on StoredContext#close()
- preserveContext() - Method in interface cn.sliew.milky.thread.ThreadContextMap
-
preserve thread context map and set default context
- preserveContext() - Method in class cn.sliew.milky.thread.ThreadContextStack.EmptyThreadContextStack
-
- preserveContext() - Method in interface cn.sliew.milky.thread.ThreadContextStack
-
preserve thread context map and set default context
- push(String) - Method in class cn.sliew.milky.thread.context.DefaultThreadContextStack
-
- push(String) - Method in class cn.sliew.milky.thread.context.MutableThreadContextStack
-
- push(String) - Static method in class cn.sliew.milky.thread.ThreadContext
-
Pushes new diagnostic context information for the current thread.
- push(String) - Method in class cn.sliew.milky.thread.ThreadContextStack.EmptyThreadContextStack
-
- push(String) - Method in interface cn.sliew.milky.thread.ThreadContextStack
-
Pushes an element onto the stack.
- put(String, String) - Method in class cn.sliew.milky.thread.context.DefaultThreadContextMap
-
- put(E) - Method in class cn.sliew.milky.thread.SizeBlockingQueue
-
- put(String, String) - Static method in class cn.sliew.milky.thread.ThreadContext
-
Puts a context value (the value parameter) as identified with the key parameter into
the current thread's context map.
- put(String, String) - Method in interface cn.sliew.milky.thread.ThreadContextMap
-
Puts a context value (the o parameter) as identified
with the key parameter into the current thread's
context map.
- putAll(Map<String, String>) - Static method in class cn.sliew.milky.thread.ThreadContext
-
Puts all given context map entries into the current thread's
context map.
- putIfAbsent(String, String) - Static method in class cn.sliew.milky.thread.ThreadContext
-
Puts a context value (the value parameter) as identified with the key parameter into
the current thread's context map if the key does not exist.