public class Resources
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Resources.Entry
Interface to be implemented by any object which wants to be managed by
the
Resources class. |
Constructor and Description |
---|
Resources()
As
Resources(int) but specifies a 60 second sleep
period between task execution. |
Resources(int sleeptimeSeconds)
As
Resources(int, ScheduledExecutorService) but uses a
Executors.newSingleThreadExecutor() . |
Resources(int sleeptimeSeconds,
java.util.concurrent.ScheduledExecutorService service) |
Modifier and Type | Method and Description |
---|---|
void |
add(Resources.Entry entry) |
void |
cleanup() |
void |
remove(Resources.Entry entry) |
int |
size() |
public Resources()
Resources(int)
but specifies a 60 second sleep
period between task execution.public Resources(int sleeptimeSeconds)
Resources(int, ScheduledExecutorService)
but uses a
Executors.newSingleThreadExecutor()
.public Resources(int sleeptimeSeconds, java.util.concurrent.ScheduledExecutorService service)
public void add(Resources.Entry entry)
public int size()
public void cleanup()
public void remove(Resources.Entry entry)