Bhupesh.
I would recommend reseting the variable in endWindow call and leaving it
non-transient. Usually an empty variable should not add too much to
serialization.

Thks,
Amol


On Sun, Nov 8, 2015 at 10:57 PM, Bhupesh Chawda <[email protected]>
wrote:

> Hi All,
>
> I have a question regarding maintaining state of a variable within a single
> application window.
> If I have a variable which is just needed for a single application window
> (just between beginWindow and endWindow calls), do I need to serialize and
> checkpoint it? or can I make it transient?
>
> I understand that in case of checkpoint windows being aligned with the
> application windows, we can do so. Since in this case, the variable will
> start afresh immediately after the checkpoint. However in case of
> checkpoints happening in between application windows, this might not be the
> case.
>
> In the second case, is there any mechanism using which I can conditionally
> make it transient and non-transient based on when the checkpoints happen
> with respect to the application windows?
>
> Thanks.
> Bhupesh
>

Reply via email to