Class TimeoutPolicy
- java.lang.Object
-
- fish.payara.microprofile.faulttolerance.policy.Policy
-
- fish.payara.microprofile.faulttolerance.policy.TimeoutPolicy
-
- All Implemented Interfaces:
Serializable
public final class TimeoutPolicy extends Policy
The resolved "cached" information of aTimeout
annotation an a specific method.- Author:
- Jan Bernitt
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description ChronoUnit
unit
long
value
-
Constructor Summary
Constructors Constructor Description TimeoutPolicy(Method annotatedMethod, long value, ChronoUnit unit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeoutPolicy
create(jakarta.interceptor.InvocationContext context, FaultToleranceConfig config)
long
toMillis()
-
Methods inherited from class fish.payara.microprofile.faulttolerance.policy.Policy
checkAtLeast, checkAtLeast, checkAtLeast, checkAtMost, checkReturnsSameAs, checkReturnsSameAs, describe, isCaught
-
-
-
-
Field Detail
-
value
public final long value
-
unit
public final ChronoUnit unit
-
-
Constructor Detail
-
TimeoutPolicy
public TimeoutPolicy(Method annotatedMethod, long value, ChronoUnit unit)
-
-
Method Detail
-
create
public static TimeoutPolicy create(jakarta.interceptor.InvocationContext context, FaultToleranceConfig config)
-
toMillis
public long toMillis()
-
-