Class AtTimer
java.lang.Object
com.swiftmq.impl.streams.comp.timer.AtTimer
- All Implemented Interfaces:
Timer
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this Timer.voidcollect(long interval) Internal usevoidInternal use.com.swiftmq.swiftlet.timer.event.TimerListenerInternal use.name()Returns the name of the Timer.onTimer(TimerCallback callback) Sets the onTimer callback.voidReconfigures this Timer and applies new settingsreset()Resets the value of a TimervoidsetTimerListener(com.swiftmq.swiftlet.timer.event.TimerListener listener) Internal use.voidstart()Starts this Timer.Executes the Timer at a specific time.toString()
-
Method Details
-
executeCallback
Description copied from interface:TimerInternal use.- Specified by:
executeCallbackin interfaceTimer- Throws:
Exception
-
time
Executes the Timer at a specific time. Format is hh:MM:ss or hh:MM. This method can be called multiple times. The timer executes them in order and daily recurring.- Parameters:
expr- time expression. Format is HH:mm:ss or HH:mm- Returns:
- this
- Throws:
Exception- on exception
-
setTimerListener
public void setTimerListener(com.swiftmq.swiftlet.timer.event.TimerListener listener) Description copied from interface:TimerInternal use.- Specified by:
setTimerListenerin interfaceTimer
-
getTimerListener
public com.swiftmq.swiftlet.timer.event.TimerListener getTimerListener()Description copied from interface:TimerInternal use.- Specified by:
getTimerListenerin interfaceTimer
-
name
-
onTimer
Description copied from interface:TimerSets the onTimer callback. -
collect
-
start
-
reset
-
reconfigure
Description copied from interface:TimerReconfigures this Timer and applies new settings- Specified by:
reconfigurein interfaceTimer- Throws:
Exception
-
close
-
toString
-