public class SharedTimer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
SharedTimer.TimerCleanup |
| Modifier and Type | Field and Description |
|---|---|
private ResourceLock |
lock |
private static java.util.logging.Logger |
LOGGER |
private java.util.concurrent.atomic.AtomicInteger |
refCount |
private java.util.Timer |
timer |
private LazyCleaner.Cleanable<java.lang.RuntimeException> |
timerCleanup |
private static java.util.concurrent.atomic.AtomicInteger |
timerCount |
| Constructor and Description |
|---|
SharedTimer() |
| Modifier and Type | Method and Description |
|---|---|
int |
getRefCount() |
java.util.Timer |
getTimer() |
void |
releaseTimer() |
private static final java.util.concurrent.atomic.AtomicInteger timerCount
private static final java.util.logging.Logger LOGGER
private volatile java.util.Timer timer
private final java.util.concurrent.atomic.AtomicInteger refCount
private final ResourceLock lock
private LazyCleaner.Cleanable<java.lang.RuntimeException> timerCleanup