- java.lang.Object
-
- swim.runtime.agent.AgentTimer
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentNodenodeprotected swim.concurrent.TimerFunctiontimerprotected swim.concurrent.TimerContexttimerContext
-
Constructor Summary
Constructors Constructor Description AgentTimer(AgentNode node, swim.concurrent.TimerFunction timer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel()booleanisScheduled()voidreschedule(long millis)voidrun()voidrunTimer()swim.concurrent.Scheduleschedule()voidsetTimerContext(swim.concurrent.TimerContext timerContext)swim.concurrent.TimerContexttimerContext()voidtimerDidCancel()voidtimerWillSchedule(long millis)
-
-
-
Field Detail
-
node
protected final AgentNode node
-
timer
protected final swim.concurrent.TimerFunction timer
-
timerContext
protected swim.concurrent.TimerContext timerContext
-
-
Constructor Detail
-
AgentTimer
public AgentTimer(AgentNode node, swim.concurrent.TimerFunction timer)
-
-
Method Detail
-
timerContext
public swim.concurrent.TimerContext timerContext()
- Specified by:
timerContextin interfaceswim.concurrent.Timer
-
setTimerContext
public void setTimerContext(swim.concurrent.TimerContext timerContext)
- Specified by:
setTimerContextin interfaceswim.concurrent.Timer
-
runTimer
public void runTimer()
- Specified by:
runTimerin interfaceswim.concurrent.Timer- Specified by:
runTimerin interfaceswim.concurrent.TimerFunction
-
timerWillSchedule
public void timerWillSchedule(long millis)
- Specified by:
timerWillSchedulein interfaceswim.concurrent.Timer
-
timerDidCancel
public void timerDidCancel()
- Specified by:
timerDidCancelin interfaceswim.concurrent.Timer
-
schedule
public swim.concurrent.Schedule schedule()
- Specified by:
schedulein interfaceswim.concurrent.TimerContext
-
isScheduled
public boolean isScheduled()
- Specified by:
isScheduledin interfaceswim.concurrent.TimerContext- Specified by:
isScheduledin interfaceswim.concurrent.TimerRef
-
reschedule
public void reschedule(long millis)
- Specified by:
reschedulein interfaceswim.concurrent.TimerContext- Specified by:
reschedulein interfaceswim.concurrent.TimerRef
-
cancel
public boolean cancel()
- Specified by:
cancelin interfaceswim.concurrent.TimerContext- Specified by:
cancelin interfaceswim.concurrent.TimerRef
-
-