RE: A way to purge an empty session

2017-06-26 Thread Gwenhael Pasquiers
Cc: user@flink.apache.org Subject: Re: A way to purge an empty session Hi Gwenhael, have you considered to use a ProcessFunction? With a ProcessFunction you have direct access to state (that you register yourself) and you can register timers that trigger a callback function when they expire. So

Re: A way to purge an empty session

2017-06-26 Thread Fabian Hueske
Hi Gwenhael, have you considered to use a ProcessFunction? With a ProcessFunction you have direct access to state (that you register yourself) and you can register timers that trigger a callback function when they expire. So you can cleanup state when you receive an element or when a timer expires