You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Assaf Cohen <as...@gmail.com> on 2016/12/20 08:02:31 UTC
Timers mechanism as part of a plugin
Is there a way to create timer, register it and get notified on expiration?
Thanks
Re: Timers mechanism as part of a plugin
Posted by Assaf Cohen <as...@gmail.com>.
Gr8
Thanks
Assaf Cohen
> On 20 Dec 2016, at 11:28, Uri Shachar <us...@hotmail.com> wrote:
>
>> On Dec 20, 2016 10:02 AM, Assaf Cohen <as...@gmail.com> wrote:
>> Is there a way to create timer, register it and get notified on expiration?
>
> You can use TSContCreate & TSContSchedule/TSContScheduleEvery to create an arbitrary callback that will be called when a timer expires/periodically.
>
> Cheers,
> Uri
Re: Timers mechanism as part of a plugin
Posted by Uri Shachar <us...@hotmail.com>.
On Dec 20, 2016 10:02 AM, Assaf Cohen <as...@gmail.com> wrote:
> Is there a way to create timer, register it and get notified on expiration?
You can use TSContCreate & TSContSchedule/TSContScheduleEvery to create an arbitrary callback that will be called when a timer expires/periodically.
Cheers,
Uri