[ 
https://issues.apache.org/jira/browse/FLINK-21308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17281960#comment-17281960
 ] 

Stephan Pelikan commented on FLINK-21308:
-----------------------------------------

I added context methods to provide a message builder function instead of the 
message itself for the 'sendAfter' methods. The function receives the generated 
message id as input so the generated message can also include this id. This is 
useful on retrieving the delayed message because one can check whether it 
matches a particular message id previously retrieved from 'sendAfter' and 
stored in the state.

> Cancel "sendAfter"
> ------------------
>
>                 Key: FLINK-21308
>                 URL: https://issues.apache.org/jira/browse/FLINK-21308
>             Project: Flink
>          Issue Type: New Feature
>          Components: Stateful Functions
>            Reporter: Stephan Pelikan
>            Priority: Major
>
> As a user I want to cancel delayed sent messages not needed any more to keep 
> state clean.
> Use case:
> {quote}My use-case is processing business events of customers. Those events 
> are triggered by ourself or by the customer depending of what's the current 
> state of the ongoing customer's business use-case. We need to monitor 
> delayed/missing business events which belong to previous events. For example: 
> the customer has to confirm something we did. Depending on what it is the 
> confirmation has to be within hours, days or even months. If there is a delay 
> we need to know. But if the customer confirms in time we want to cleanup to 
> keep the state small.
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to