public final class TimerStage extends Object implements Stage
Constructor and Description |
---|
TimerStage(EventHandler<PeriodicEvent> handler,
long period)
Constructs a timer stage with no initial delay.
|
TimerStage(EventHandler<PeriodicEvent> handler,
long initialDelay,
long period)
Constructs a timer stage.
|
TimerStage(String name,
EventHandler<PeriodicEvent> handler,
long period)
Constructs a timer stage with no initial delay.
|
TimerStage(String name,
EventHandler<PeriodicEvent> handler,
long initialDelay,
long period)
Constructs a timer stage.
|
@Inject public TimerStage(EventHandler<PeriodicEvent> handler, long period)
handler
- an event handlerperiod
- a period in milli-seconds@Inject public TimerStage(String name, EventHandler<PeriodicEvent> handler, long period)
name
- the stage namehandler
- an event handlerperiod
- a period in milli-seconds@Inject public TimerStage(EventHandler<PeriodicEvent> handler, long initialDelay, long period)
handler
- an event handlerinitialDelay
- an initial delayperiod
- a period in milli-seconds@Inject public TimerStage(String name, EventHandler<PeriodicEvent> handler, long initialDelay, long period)
name
- the stage namehandler
- an event handlerinitialDelay
- an initial delayperiod
- a period in milli-secondspublic void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2017 The Apache Software Foundation. All rights reserved.