You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Lars-Fredrik Smedberg <it...@gmail.com> on 2015/05/28 11:13:30 UTC
Get a reference to all Timer or TimerHandle available
Hi!
Is there a way to get a list of references to all timers running in an
application (Timer and/or TimerHandle reference)?
I would like to be able to create a list of the timers in the order they
will timeout... and the Timer interface exposes the getNextTimeout() method.
Can this be done or has anyone done something similar and if so how?
Regards
LF
--
Med vänlig hälsning / Best regards
Lars-Fredrik Smedberg
STATEMENT OF CONFIDENTIALITY:
The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
address(es) and may contain confidential or privileged information. If
you are not the intended recipient, please notify Lars-Fredrik Smedberg
immediately at itsmeden@gmail.com, and destroy all copies of this
message and any attachments.
Re: Get a reference to all Timer or TimerHandle available
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
Usong standard api of ee 6 you cant. Using quartz + our api it is doable
Le 28 mai 2015 03:53, "Lars-Fredrik Smedberg" <it...@gmail.com> a écrit :
> Just want to clarify that we are using JEE 6 and cannot use the
> getAllTimers() method in TimerService....
>
> Regards
> LF
>
> On Thu, May 28, 2015 at 11:13 AM, Lars-Fredrik Smedberg <
> itsmeden@gmail.com>
> wrote:
>
> > Hi!
> >
> > Is there a way to get a list of references to all timers running in an
> > application (Timer and/or TimerHandle reference)?
> >
> > I would like to be able to create a list of the timers in the order they
> > will timeout... and the Timer interface exposes the getNextTimeout()
> method.
> >
> > Can this be done or has anyone done something similar and if so how?
> >
> > Regards
> > LF
> >
> >
> >
> > --
> > Med vänlig hälsning / Best regards
> >
> > Lars-Fredrik Smedberg
> >
> > STATEMENT OF CONFIDENTIALITY:
> > The information contained in this electronic message and any
> > attachments to this message are intended for the exclusive use of the
> > address(es) and may contain confidential or privileged information. If
> > you are not the intended recipient, please notify Lars-Fredrik Smedberg
> > immediately at itsmeden@gmail.com, and destroy all copies of this
> > message and any attachments.
> >
>
>
>
> --
> Med vänlig hälsning / Best regards
>
> Lars-Fredrik Smedberg
>
> STATEMENT OF CONFIDENTIALITY:
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of the
> address(es) and may contain confidential or privileged information. If
> you are not the intended recipient, please notify Lars-Fredrik Smedberg
> immediately at itsmeden@gmail.com, and destroy all copies of this
> message and any attachments.
>
Re: Get a reference to all Timer or TimerHandle available
Posted by Lars-Fredrik Smedberg <it...@gmail.com>.
Just want to clarify that we are using JEE 6 and cannot use the
getAllTimers() method in TimerService....
Regards
LF
On Thu, May 28, 2015 at 11:13 AM, Lars-Fredrik Smedberg <it...@gmail.com>
wrote:
> Hi!
>
> Is there a way to get a list of references to all timers running in an
> application (Timer and/or TimerHandle reference)?
>
> I would like to be able to create a list of the timers in the order they
> will timeout... and the Timer interface exposes the getNextTimeout() method.
>
> Can this be done or has anyone done something similar and if so how?
>
> Regards
> LF
>
>
>
> --
> Med vänlig hälsning / Best regards
>
> Lars-Fredrik Smedberg
>
> STATEMENT OF CONFIDENTIALITY:
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of the
> address(es) and may contain confidential or privileged information. If
> you are not the intended recipient, please notify Lars-Fredrik Smedberg
> immediately at itsmeden@gmail.com, and destroy all copies of this
> message and any attachments.
>
--
Med vänlig hälsning / Best regards
Lars-Fredrik Smedberg
STATEMENT OF CONFIDENTIALITY:
The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
address(es) and may contain confidential or privileged information. If
you are not the intended recipient, please notify Lars-Fredrik Smedberg
immediately at itsmeden@gmail.com, and destroy all copies of this
message and any attachments.