Class MessageTimeToLiveChecker

java.lang.Object
io.camunda.zeebe.engine.processing.message.MessageTimeToLiveChecker
All Implemented Interfaces:
Task

public final class MessageTimeToLiveChecker extends Object implements Task
The Message TTL Checker looks for expired message deadlines, and for each of those it writes an EXPIRE Message command.

To prevent that it clogs the log stream with too many EXPIRE Message commands, it only writes a limited number of these commands in a single run of execute(TaskResultBuilder).

It determines whether to reschedule itself immediately, or after the configured interval. If it reschedules itself immediately, then it will continue where it left off the last time. Otherwise, it starts with the first expired message deadline it can find.