Top Inners Fields Constructors Methods
org.postgresql.util

public Class SharedTimer

extends Object
Class Inheritance
Imports
org.postgresql.jdbc.ResourceLock, org.checkerframework.checker.nullness.qual.Nullable, java.util.Timer, java.util.concurrent.atomic.AtomicInteger, java.util.logging.Level, .Logger

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final ResourceLock
private static final Logger
private final AtomicInteger
private volatile @Nullable Timer
private @Nullable LazyCleaner.Cleanable<RuntimeException>
private static final AtomicInteger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
public Timer
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lockback to summary
private final ResourceLock lock
LOGGERback to summary
private static final Logger LOGGER
refCountback to summary
private final AtomicInteger refCount
timerback to summary
private volatile @Nullable Timer timer
timerCleanupback to summary
private @Nullable LazyCleaner.Cleanable<RuntimeException> timerCleanup
timerCountback to summary
private static final AtomicInteger timerCount

Constructor Detail

SharedTimerback to summary
public SharedTimer()

Method Detail

getRefCountback to summary
public int getRefCount()
getTimerback to summary
public Timer getTimer()
releaseTimerback to summary
public void releaseTimer()
org.postgresql.util back to summary

pack-priv Class SharedTimer.TimerCleanup

extends Object
implements LazyCleaner.CleaningAction<RuntimeException>
Class Inheritance
All Implemented Interfaces
org.postgresql.util.LazyCleaner.CleaningAction

Field Summary

Modifier and TypeField and Description
private final Timer

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

timerback to summary
private final Timer timer

Constructor Detail

TimerCleanupback to summary
pack-priv TimerCleanup(Timer timer)

Method Detail

onCleanback to summary
public void onClean(boolean leak) throws RuntimeException

Implements org.postgresql.util.LazyCleaner.CleaningAction.onClean.

Annotations
@Override