Rice Pastry API

rice.environment.time
Interface TimeSource

All Known Implementing Classes:
DirectTimeSource, SimpleTimeSource

public interface TimeSource

Interface to return the current time. The simplest interface can simply return System.currentTimeMillis();

Version:
$Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
Jeff Hoye

Method Summary
 long currentTimeMillis()
           
 void sleep(long delay)
          block for this many millis
 

Method Detail

currentTimeMillis

public long currentTimeMillis()
Returns:
the current time in millis

sleep

public 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

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.