On 2. September 2014 22:53:43 MESZ, Leon Rosenberg
wrote:
>no :-)
>Allow me to provide an example.
>This class : MoSKitoWebUIContext.java (
>https://github.com/anotheria/moskito/blob/master/moskito-webui/src/main/java/net/anotheria/moskito/webui/MoSKitoWebUIContext.java
>)
>Is a ThreadLocal tha
no :-)
Allow me to provide an example.
This class : MoSKitoWebUIContext.java (
https://github.com/anotheria/moskito/blob/master/moskito-webui/src/main/java/net/anotheria/moskito/webui/MoSKitoWebUIContext.java
)
Is a ThreadLocal that is used to store some information, for example
HttpSession.
In the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Leo,
On 9/2/14, 4:22 PM, Leo Donahue wrote:
> On Tue, Sep 2, 2014 at 3:00 PM, Leon Rosenberg
> wrote:
>
>> From practical point of view ThreadLocal is a huge hashmap
>> directly in the ThreadClass where you can store a map of
>> variables. Somethi
On Tue, Sep 2, 2014 at 3:00 PM, Leon Rosenberg
wrote:
> From practical point of view ThreadLocal is a huge hashmap directly in the
> ThreadClass where you can store a map of variables.
> Something like Thread.Map>, in which you can
> access variables that are 'attached' logically to the current T
>From practical point of view ThreadLocal is a huge hashmap directly in the
ThreadClass where you can store a map of variables.
Something like Thread.Map>, in which you can
access variables that are 'attached' logically to the current Thread.
In practice its a nice way to pass information through l
I've been reading about using Thread Local in web applications and the
general use case is to generate a transaction id in a filter so that the
rest of the web application running in the thread local will have access to
that transaction id.
Thread Local is essentially a way to create a global vari