| com.atlassian.stash.util.ForcedDrainable |
Indicates connection pools and similar data structures which have a means of waiting for resources to close/clean up and additionally support a more aggressive form of draining which attempts to forcibly release the underlying resources.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
A more aggressive form of
drain(long, java.util.concurrent.TimeUnit). | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.stash.util.Drainable
| |||||||||||
A more aggressive form of drain(long, java.util.concurrent.TimeUnit). If after the supplied timeout
the underlying resources are not free then this object will take additional steps to ensure they are free.
Callers are advised to first drain before forcing to
minimise adverse effects from this more aggressive approach.
| timeout | the timeout which, using the specified unit, will be converted to milliseconds |
|---|---|
| unit | the unit the provided timeout is in |
true if the pool was drained; otherwise, false if 1 or more resources could not
be accounted for or forced within the specified timeout