Class SubscriptionDelayException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.persequor.extension.subscription.SubscriptionDelayException
- All Implemented Interfaces:
IFailedReasonDetails
,HasAdditionalData<IFailedReasonDetails>
,Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubscriptionDelayException
(String message) SubscriptionDelayException
(String message, String failedReason) SubscriptionDelayException
(String message, String failedReason, Delay delay) SubscriptionDelayException
(String message, String failedReason, Delay delay, Throwable throwable) SubscriptionDelayException
(String message, String failedReason, Throwable cause) SubscriptionDelayException
(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptiongetDelay()
The type of error, must be one ofIFailedReasonRegistry.values()
You should write the details in such a way that an operator knows what to do to resolve it and make a decision as to whether the Event/Document should be reprocessed by the queue.boolean
void
setEagerRetry
(boolean eagerRetry) withAdditionalData
(Consumer<AdditionalData> withData) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
additionalData
-
-
Constructor Details
-
SubscriptionDelayException
public SubscriptionDelayException() -
SubscriptionDelayException
-
SubscriptionDelayException
-
SubscriptionDelayException
-
SubscriptionDelayException
-
SubscriptionDelayException
-
SubscriptionDelayException
-
SubscriptionDelayException
-
-
Method Details
-
isEagerRetry
public boolean isEagerRetry() -
setEagerRetry
public void setEagerRetry(boolean eagerRetry) -
getIssueDetails
Description copied from interface:IFailedReasonDetails
You should write the details in such a way that an operator knows what to do to resolve it and make a decision as to whether the Event/Document should be reprocessed by the queue.- Specified by:
getIssueDetails
in interfaceIFailedReasonDetails
- Returns:
- A description of what the issue is
-
getFailedReason
Description copied from interface:IFailedReasonDetails
The type of error, must be one ofIFailedReasonRegistry.values()
- Specified by:
getFailedReason
in interfaceIFailedReasonDetails
- Returns:
- The type of error
-
getDelay
-
getAdditionalData
- Specified by:
getAdditionalData
in interfaceHasAdditionalData<IFailedReasonDetails>
-
withAdditionalData
- Specified by:
withAdditionalData
in interfaceHasAdditionalData<IFailedReasonDetails>
-