public final class IdlingPolicy
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
long |
getIdleTimeout()
The amount of time the policy allows a resource to be non-idle.
|
java.util.concurrent.TimeUnit |
getIdleTimeoutUnit()
The unit for .
|
void |
handleTimeout(java.util.List<java.lang.String> busyResources,
java.lang.String message)
Invoked when the idle idleTimeout has been exceeded.
|
public long getIdleTimeout()
public java.util.concurrent.TimeUnit getIdleTimeoutUnit()
public void handleTimeout(java.util.List<java.lang.String> busyResources, java.lang.String message)
busyResources
- the resources that are not idle.message
- an additional message to include in an exception.