[ 
https://issues.apache.org/jira/browse/LABS-282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simone Gianni resolved LABS-282.
--------------------------------

    Resolution: Fixed

> [refactoring][all] Cycle support
> --------------------------------
>
>                 Key: LABS-282
>                 URL: https://issues.apache.org/jira/browse/LABS-282
>             Project: Labs
>          Issue Type: Improvement
>          Components: Magma
>    Affects Versions: Current
>            Reporter: Simone Gianni
>            Assignee: Simone Gianni
>             Fix For: Current
>
>
> A Magma application runs "cycles". For example, in a web application a cycle 
> is a web request. Each Cycle is served by one Thread, or at least has one 
> main Thread. 
> Magma uses ThreadLocals in a number of places, and other cycle-sensitive 
> informations. 
> By adding the notion of cycle, it is possible to cleanup after the cycle has 
> completed. For example, to empty all ThreadLocals allocated during the cycle.
> This prevents memory leaks, offer a generic infrastructure for a number of 
> features (like database transactions) which are currently implemented case by 
> case, and offers a good protection shield against programmer errors.
> This is connected with LABS-279 cause, obviously, the current running context 
> is the first thing that must be cleared after each cycle.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to