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 ProcessingResultonTimedMessage(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.UpdateDigitalTwinto update the digital twin instance orProcessingResult.NoUpdateto leave the instance state as is.
-
-