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.booleanvoidsetEagerRetry(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:IFailedReasonDetailsYou 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:
getIssueDetailsin interfaceIFailedReasonDetails- Returns:
- A description of what the issue is
-
getFailedReason
Description copied from interface:IFailedReasonDetailsThe type of error, must be one ofIFailedReasonRegistry.values()- Specified by:
getFailedReasonin interfaceIFailedReasonDetails- Returns:
- The type of error
-
getDelay
-
getAdditionalData
- Specified by:
getAdditionalDatain interfaceHasAdditionalData<IFailedReasonDetails>
-
withAdditionalData
- Specified by:
withAdditionalDatain interfaceHasAdditionalData<IFailedReasonDetails>
-