R - result typepublic class TimeoutConfig<R> extends PolicyConfig<R>
Timeout.
This class is threadsafe.
TimeoutBuilder| Modifier and Type | Method and Description |
|---|---|
boolean |
canInterrupt()
Returns whether the policy can interrupt an execution if the timeout is exceeded.
|
Duration |
getTimeout()
Returns the timeout duration.
|
getFailureListener, getSuccessListenerpublic Duration getTimeout()
public boolean canInterrupt()
TimeoutBuilder.withInterrupt()Copyright © 2022. All rights reserved.