Interface TimerHandler<T extends DigitalTwinBase>
-
- Type Parameters:
T
- the type of theDigitalTwinBase
.
public interface TimerHandler<T extends DigitalTwinBase>
Callback to a handle a timer message for aDigitalTwinBase
.
-
-
Method Summary
Modifier and Type Method Description ProcessingResult
onTimedMessage(java.lang.String timerName, T instance, ProcessingContext ctx)
Callback to handle a timer message.
-
-
-
Method Detail
-
onTimedMessage
ProcessingResult onTimedMessage(java.lang.String timerName, T instance, ProcessingContext ctx)
Callback to handle a timer message.- Parameters:
timerName
- the timer's unique identifier.instance
- the digital twin instance.ctx
- the processing context.- Returns:
ProcessingResult.UpdateDigitalTwin
to update the digital twin instance orProcessingResult.NoUpdate
to leave the instance state as is.
-
-