Re: How to isSet() check for a Timer

2018-11-02 Thread Reza Rokni
Thanx! On 2018/11/03 03:54:46, Reza Ardeshir Rokni wrote: > Hi, > > I have a need to set an alarm in both the Element DoFn as well as the > OnTimer code block. I need to ensure that I do not overwrite a already set > timer, is there a way to check if a Timer has been set? > > One thought was

Re: How to isSet() check for a Timer

2018-11-02 Thread Kenneth Knowles
There is not a way to check if a timer has been set. It would be a different & more expensive protocol if that API were available. Timers are deliberately a "blind write" API. The best approach today is just what you said - add a ValueState. But that negates the performance benefits of the API desi

How to isSet() check for a Timer

2018-11-02 Thread Reza Ardeshir Rokni
Hi, I have a need to set an alarm in both the Element DoFn as well as the OnTimer code block. I need to ensure that I do not overwrite a already set timer, is there a way to check if a Timer has been set? One thought was to use a ValueState which I can manually set / unset as part of the operatio