Package com.impossibl.postgres.jdbc
Class ThreadedHousekeeper.Ref
- java.lang.Object
-
- com.impossibl.postgres.jdbc.ThreadedHousekeeper.Ref
-
- All Implemented Interfaces:
Housekeeper.Ref
- Enclosing class:
- ThreadedHousekeeper
public class ThreadedHousekeeper.Ref extends Object implements Housekeeper.Ref
-
-
Constructor Summary
Constructors Constructor Description Ref()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Object
add(T reference, Housekeeper.CleanupRunnable cleanup)
ThreadedHousekeeper
get()
void
release()
void
remove(Object cleanupKey)
-
-
-
Method Detail
-
get
public ThreadedHousekeeper get()
- Specified by:
get
in interfaceHousekeeper.Ref
-
release
public void release()
- Specified by:
release
in interfaceHousekeeper.Ref
-
add
public <T> Object add(T reference, Housekeeper.CleanupRunnable cleanup)
- Specified by:
add
in interfaceHousekeeper.Ref
-
remove
public void remove(Object cleanupKey)
- Specified by:
remove
in interfaceHousekeeper.Ref
-
-