public interface Drainable
drain
method may be used to block while all
resources are closed or cleaned up in some implementation-specific way.Modifier and Type | Method and Description |
---|---|
boolean |
drain(long timeout,
TimeUnit unit)
Waits for all resources to become free.
|
boolean drain(long timeout, @Nonnull TimeUnit unit)
timeout
- the timeout which, using the specified unit, will be converted to millisecondsunit
- the unit the provided timeout is intrue
if the pool was drained; otherwise, false
if 1 or more resources could not
be accounted for within the specified timeoutCopyright © 2024 Atlassian. All rights reserved.