Class ThreadContexts
java.lang.Object
org.jboss.resteasy.spi.concurrent.ThreadContexts
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(ThreadContext<?> threadContext) Adds the context to the current collection.clear()
Clears the current contexts.Returns a collection of the current thread contexts.
-
Constructor Details
-
ThreadContexts
public ThreadContexts()Creates a new collection instance.
-
-
Method Details
-
add
Adds the context to the current collection.- Parameters:
threadContext
- the thread context to add- Returns:
- this instance
-
getThreadContexts
Returns a collection of the current thread contexts. This is a snapshot of what is currently in the collection sorted by priority.- Returns:
- an immutable collection of the curren thread contexts
-
clear
-