Package org.postgresql.util
Class SharedTimer
- java.lang.Object
-
- org.postgresql.util.SharedTimer
-
public class SharedTimer extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SharedTimer.TimerCleanup
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description SharedTimer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRefCount()
java.util.Timer
getTimer()
void
releaseTimer()
-
-
-
Field Detail
-
timerCount
private static final java.util.concurrent.atomic.AtomicInteger timerCount
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
timer
private volatile java.util.Timer timer
-
refCount
private final java.util.concurrent.atomic.AtomicInteger refCount
-
lock
private final ResourceLock lock
-
timerCleanup
private LazyCleaner.Cleanable<java.lang.RuntimeException> timerCleanup
-
-