Package com.atlassian.bamboo.utils
Class InvocationLimiterResponse<T>
java.lang.Object
com.atlassian.bamboo.utils.InvocationLimiterResponse<T>
- Type Parameters:
T
- type of response
Invocation limiter response. Contains information whether an invocation occurred or not.
In case of reaching the maximum number of invocations, the response contains information when the next call can be performed.
-
Method Summary
Modifier and TypeMethodDescription@Nullable Duration
getValue()
boolean
isCalled()
static <U> InvocationLimiterResponse<U>
static <U> InvocationLimiterResponse<U>
successful
(U value)
-
Method Details
-
successful
-
rejected
-
getValue
-
isCalled
public boolean isCalled() -
getRetryAfter
-