rice.environment.time
Interface TimeSource
- All Superinterfaces:
- Destructable
- All Known Implementing Classes:
- DirectTimeSource, SimpleTimeSource
public interface TimeSource
- extends Destructable
Virtualized clock for FreePastry.
Can return the current time, or be blocked on.
Usually acquired by calling environment.getTimeSource().
TODO: add wait(lock, timeout) that is the same a s lock.wait(timeout)
- Author:
- Jeff Hoye
currentTimeMillis
long currentTimeMillis()
- Returns:
- the current time in millis
sleep
void sleep(long delay)
throws java.lang.InterruptedException
- block for this many millis
- Parameters:
delay
- the amount of time to sleep
- Throws:
java.lang.InterruptedException
Copyright © 2001-2005 - Rice Pastry.