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 a
DigitalTwinBase
.-
Method Summary
Modifier and TypeMethodDescriptiononTimedMessage
(String timerName, T instance, ProcessingContext ctx) Callback to handle a timer message.
-
Method Details
-
onTimedMessage
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.
-