# Delay stream notification by current date time offset

**URL:** <https://forum.confluent.io/t/delay-stream-notification-by-current-date-time-offset/1645>\
**Category:** Kafka Streams\
**Created:** [2 May 2021 08:24 UTC](https://forum.confluent.io/t/delay-stream-notification-by-current-date-time-offset/1645 "2021-05-02T08:24:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![garrardkitchen](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/garrardkitchen/32/738_2.png) [@garrardkitchen](https://forum.confluent.io/u/garrardkitchen)\
**Post date:** [2 May 2021 08:24 UTC](https://forum.confluent.io/t/delay-stream-notification-by-current-date-time-offset/1645/1 "2021-05-02T08:24:51Z")

</div>

Is it possible to only consume a stream entry when a date time field in the payload is older than 5 min (when compared against the current datetime)?

My scenario is this…

We have users interacting with an application. Some of these activities result in data being persisted to a db. We want to trigger an activity 5 mins after their last interaction).

Warmest regards

---

<div class="post-metadata">

**Author:** ![programista4k](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/programista4k/32/767_2.png) [@programista4k](https://forum.confluent.io/u/programista4k)\
**Post date:** [12 May 2021 17:13 UTC](https://forum.confluent.io/t/delay-stream-notification-by-current-date-time-offset/1645/2 "2021-05-12T17:13:04Z")

</div>

Maybe in

```auto
org.apache.kafka.streams.processor.AbstractProcessor
ProcessorContext.schedule(...)

```

ya will find the solution but do ya really need Kafka Streams for this, fren?  
Why don’t resolve it programmatically? In dedicated MessageHandler.
