|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.environment.time.simple.SimpleTimeSource
public class SimpleTimeSource
Uses System.currentTimeMillis() to generate time.
Constructor Summary | |
---|---|
SimpleTimeSource()
|
Method Summary | |
---|---|
long |
currentTimeMillis()
Returns the System.currentTimeMillis(); |
void |
destroy()
|
void |
sleep(long delay)
block for this many millis |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleTimeSource()
Method Detail |
---|
public long currentTimeMillis()
currentTimeMillis
in interface TimeSource
public void sleep(long delay) throws java.lang.InterruptedException
TimeSource
sleep
in interface TimeSource
delay
- the amount of time to sleep
java.lang.InterruptedException
public void destroy()
destroy
in interface Destructable
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |