public class CleanupRunnable
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Runnable |
cleanup
The cleanup runnable executed after the normal execution has terminated.
|
protected java.util.logging.Logger |
logger
The logger for logging exceptions from the cleanup runnable.
|
protected java.lang.Runnable |
runnable
The runnable executed normally.
|
| Constructor and Description |
|---|
CleanupRunnable(java.lang.Runnable runnable,
java.lang.Runnable cleanup,
java.util.logging.Logger logger)
Creates a new cleanup runnable executing the first runnable and the
cleanup runnable finally after the first runnable.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
protected final java.lang.Runnable runnable
protected final java.lang.Runnable cleanup
protected final java.util.logging.Logger logger
public CleanupRunnable(java.lang.Runnable runnable,
java.lang.Runnable cleanup,
java.util.logging.Logger logger)
runnable - The runnable executed normally.cleanup - The cleanup runnable executed after the normal execution
has terminated.logger - The logger for logging exceptions from the cleanup
runnable.