Connectionpublic class Pooled<A extends Pooled<A>>
extends java.lang.Object
| Constructor | Description |
|---|---|
Pooled() |
| Modifier and Type | Method | Description |
|---|---|---|
A |
lease() |
Takes a lease on the pooled object.
|
boolean |
release() |
Releases the pooled object.
|
public A lease()
this if the object is still valid (has at least 1 lease), else nullpublic boolean release()
release() returns true.true if this was the last outstanding lease. Else false