public class ThreadLocalContextManager extends Object implements ContextManager
ContextManager
that returns a unique Context
instance per thread.Constructor and Description |
---|
ThreadLocalContextManager() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the underlying context data.
|
Context |
getContext()
Returns a unique
Context instance per thread. |
public Context getContext()
Context
instance per thread. Useful for
applications that use a single thread to server a user's request.getContext
in interface ContextManager
Context
instance per thread.public void clear()
ContextManager
clear
in interface ContextManager
Copyright © 2012–2020. All rights reserved.