public class AsyncLoader
extends java.lang.Object
Constructor and Description |
---|
AsyncLoader() |
Modifier and Type | Method and Description |
---|---|
void |
awaitLoadDone() |
void |
increment()
Increment the number of items loaded by 1.
|
void |
setNumItems(java.lang.Integer n)
Set the number of items.
|
void |
startLoading()
Acquire the lock as a producer.
|
public void startLoading()
public void increment()
public void setNumItems(java.lang.Integer n)
public void awaitLoadDone() throws java.lang.InterruptedException
java.lang.InterruptedException