Class MockSleeper
- java.lang.Object
-
- com.google.api.client.testing.util.MockSleeper
-
-
Field Summary
Fields Modifier and Type Field Description private int
count
Number of timessleep(long)
was called.private long
lastMillis
-
Constructor Summary
Constructors Constructor Description MockSleeper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
Returns the number of timessleep(long)
was called.long
getLastMillis()
void
sleep(long millis)
Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds as specified inThread.sleep(long)
.
-
-
-
Field Detail
-
count
private int count
Number of timessleep(long)
was called.
-
lastMillis
private long lastMillis
-
-
Method Detail
-
sleep
public void sleep(long millis) throws java.lang.InterruptedException
Description copied from interface:Sleeper
Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds as specified inThread.sleep(long)
.
-
getCount
public final int getCount()
Returns the number of timessleep(long)
was called.
-
getLastMillis
public final long getLastMillis()
-
-