Package com.esprow.oapi.repository
Interface OapiTimerSchedule
public interface OapiTimerSchedule
-
Method Summary
Modifier and TypeMethodDescriptionReturns an action to take when the timer expires.getActor()
Returns the actor that owns the timer.Returns the time to the timer's expiration.getName()
Returns the name of the timer.Returns an indication whether to start or cancel.void
setActivity
(OapiAction value) Set an action to take when the timer expires.void
Set the actor that owns the timer.void
setInterval
(Duration value) Set the time to the timer's expiration.void
Set the name of the timer.void
setOperation
(TimerOperation value) Set an indication whether to start or cancel.
-
Method Details
-
getActivity
OapiAction getActivity()Returns an action to take when the timer expires.- Returns:
- an action to take when the timer expires
- See Also:
-
setActivity
Set an action to take when the timer expires.- Parameters:
value
- the new value of the 'Activity' containment reference.- See Also:
-
getActor
String getActor()Returns the actor that owns the timer.- Returns:
- the actor that owns the timer
- See Also:
-
setActor
Set the actor that owns the timer.- Parameters:
value
- the new value of the 'Actor' attribute.- See Also:
-
getInterval
Duration getInterval()Returns the time to the timer's expiration.- Returns:
- the time to the timer's expiration
- See Also:
-
setInterval
Set the time to the timer's expiration.- Parameters:
value
- the new value of the 'Interval' attribute.- See Also:
-
getName
String getName()Returns the name of the timer.- Returns:
- the name of the timer
- See Also:
-
setName
Set the name of the timer.- Parameters:
value
- the new value of the 'Name' attribute.- See Also:
-
getOperation
TimerOperation getOperation()Returns an indication whether to start or cancel. The literals are from the enumerationTimerOperation
.- Returns:
- an indication whether to start or cancel
- See Also:
-
setOperation
Set an indication whether to start or cancel.- Parameters:
value
- the new value of the 'Operation' attribute.- See Also:
-