|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.kafka.common.utils.SystemTime
public class SystemTime
A time implementation that uses the system clock and sleep call
| Constructor Summary | |
|---|---|
SystemTime()
|
|
| Method Summary | |
|---|---|
long |
milliseconds()
The current time in milliseconds |
long |
nanoseconds()
The current time in nanoseconds |
void |
sleep(long ms)
Sleep for the given number of milliseconds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemTime()
| Method Detail |
|---|
public long milliseconds()
Time
milliseconds in interface Timepublic long nanoseconds()
Time
nanoseconds in interface Timepublic void sleep(long ms)
Time
sleep in interface Time
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||