This project has retired. For details please refer to its
Attic page .
RealTimer (REEF 0.16.0 API)
JavaScript is disabled on your browser.
Summary:
Nested |
Field |
Constr |
Method
Detail:
Field |
Constr |
Method
Method Summary
Methods
Modifier and Type
Method and Description
long
getCurrent ()
Get current time in milliseconds since the beginning of the epoch (01/01/1970).
long
getDuration (long time)
Deprecated.
[REEF-1532] Prefer passing Time object instead of the numeric timestamp.
Remove after release 0.16.
long
getDuration (Time time)
Get the number of milliseconds from current system time to the given event.
boolean
isReady (long time)
Deprecated.
[REEF-1532] Prefer passing Time object instead of the numeric timestamp.
Remove after release 0.16.
boolean
isReady (Time time)
Check if the event with a given timestamp has occurred.
Method Detail
getDuration
public long getDuration (long time)
Deprecated. [REEF-1532] Prefer passing Time object instead of the numeric timestamp.
Remove after release 0.16.
Get the number of milliseconds from current system time to the given event.
Can return a negative number if the event is already in the past.
Specified by:
getDuration
in interface Timer
Parameters: time
- Timestamp in milliseconds.
Returns: Difference in milliseconds between the given timestamp and current system time.
The result is a negative number if the timestamp is in the past.
isReady
public boolean isReady (long time)
Deprecated. [REEF-1532] Prefer passing Time object instead of the numeric timestamp.
Remove after release 0.16.
Check if the event with a given timestamp has occurred. Return true if the timestamp
equals or less than the current system time, and false if it is still in the future.
Specified by:
isReady
in interface Timer
Parameters: time
- Timestamp in milliseconds.
Returns: False if the given timestamp is still in the future.
isReady
public boolean isReady (Time time)
Check if the event with a given timestamp has occurred. Return true if the timestamp
equals or less than the current system time, and false if it is still in the future.
Specified by:
isReady
in interface Timer
Parameters: time
- Timestamp object that wraps time in milliseconds.
Returns: False if the given timestamp is still in the future.
Summary:
Nested |
Field |
Constr |
Method
Detail:
Field |
Constr |
Method
Copyright © 2017 The Apache Software Foundation . All rights reserved.