public class OneShotTimer extends Timer
Jamaica Real-Time Specification for Java class OneShotTimer.
This event will fire once at a specified time.
Constructor and Description |
---|
OneShotTimer(HighResolutionTime<?> time,
AsyncBaseEventHandler handler)
Constructor to create an instance with given time and handler.
|
OneShotTimer(HighResolutionTime<?> time,
AsyncEventHandler handler)
Constructor to create an instance with given time and handler.
|
OneShotTimer(HighResolutionTime<?> start,
Clock clock,
AsyncBaseEventHandler handler)
Constructor to create an instance with given time, clock and
handler.
|
OneShotTimer(HighResolutionTime<?> start,
Clock clock,
AsyncEventHandler handler)
Constructor to create an instance with given time, clock and
handler.
|
bindTo, createReleaseParameters, destroy, disable, enable, fire, getClock, getDispatcher, getFireTime, getFireTime, isRunning, reschedule, start, start, stop
addHandler, addHandler, handledBy, handledBy, removeHandler, removeHandler, setHandler, setHandler, unbindTo
hasHandlers
public OneShotTimer(HighResolutionTime<?> time, AsyncBaseEventHandler handler)
StaticIllegalArgumentException
- if time is a negative
RelativeTime.time
- The time when this timer should fire. May be null, in
this case this is equal to new RelativeTime(0, 0) and the firing
will occur immediately after a call to start().handler
- The handler that will be released when this timer
fires. May be null to have no handler until one will be added via
addHandler.public OneShotTimer(HighResolutionTime<?> time, AsyncEventHandler handler)
This method has been replaced in RTSJ 2.0 to support the more generic AsyncBaseEventHandler and is kept for binary compatibility.
public OneShotTimer(HighResolutionTime<?> start, Clock clock, AsyncBaseEventHandler handler)
StaticIllegalArgumentException
- if time is a negative
RelativeTime.start
- The time when this timer should fire. May be null, in
this case this is equal to new RelativeTime(0, 0) and the firing
will occur immediately after a call to start().clock
- the clock this timer should be based upon. May be
null to use the default System.getRealtimeClock().handler
- The handler that will be released when this timer
fires. May be null to have no handler until one will be added via
addHandler.public OneShotTimer(HighResolutionTime<?> start, Clock clock, AsyncEventHandler handler)
This method has been replaced in RTSJ 2.0 to support the more generic AsyncBaseEventHandler and is kept for binary compatibility.
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.