users@ejb-spec.java.net

[ejb-spec users] [jsr345-experts] Re: TimerService.getAllTimers() (EJB_SPEC-47)

From: Florent BENOIT <Florent.Benoit_at_ow2.org>
Date: Tue, 26 Jun 2012 11:25:44 +0200

Yes I still think that this new API is useful (and with the new feature
of being able to get timers with a scope level)

Regards,

Florent

On 05/01/2012 02:42 AM, Marina Vatkina wrote:
> We have 2 votes for 3a and 2 votes for 3b.
>
> Those of you who didn't vote, please do so.
>
> Florent, Jean-Louis, (you chose 3b) do you still think that the new
> API is useful? What would in your opinion the caller be able to do
> with the timers returned by this API?
>
> thanks,
> -marina
>
> Florent BENOIT wrote:
>> 1a
>> 2b
>> 3b
>>
>> Regards,
>>
>> Florent
>>
>> On 04/18/2012 11:01 PM, Marina Vatkina wrote:
>>> Experts,
>>>
>>> Do you think it is useful to add a method to the TimerService -
>>> getAllTimers() - (see http://java.net/jira/browse/EJB_SPEC-47) that
>>> will allow to get a collection of all active timers in this
>>> application?
>>>
>>> If you think it is useful, which options should be supported:
>>>
>>> 1. Scope
>>> a) All timers in the same EJB module
>>> b) All timers in the same application (EAR file)
>>>
>>> 2. Runtime:
>>> a) Timers from 1a or 1b running on the same server instance
>>> b) Timers from 1a or 1b running on any instance in the cluster
>>>
>>> 3. Cancelation:
>>> a) Timers returned by this method can be canceled by the caller
>>> (i.e. even if it doesn't own the timer)
>>> b) Only the bean that owns a timer can cancel it.
>>>
>>> If you think there is no need for the new API, please say so.
>>>
>>> Best,
>>> -marina
>>>
>>>
>>