Class DeadLetter
java.lang.Object
com.broadleafcommerce.deadletter.domain.DeadLetter
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
public class DeadLetter
extends Object
implements com.broadleafcommerce.data.tracking.core.ContextStateAware
This is a representation of a special type of message that stores messages the billing module
cannot process due to errors
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe message of the exception that caused this DeadLetterprotected @Size(max=255) Stringprotected StringID of the Billing Job where this dead letter originatedprotected ObjectPayload of the central message object that kicked off the stage of the Billing Job where this DeadLetter occurredprotected StringIf this DeadLetter occurred during message transit, id of the messageprotected StringIf this DeadLetter occurred during message consumption, id of message receiptprotected DeadLetterResolutionStatusEnumResolution status of this DeadLetterprotected StringThe stacktrace of the exception that caused this DeadLetterprotected intMaximum length of the stacktrace for this DeadLetterprotected StringName of the message channel binding (subscription) where this DeadLetter originatedprotected booleanWhether this instance is supported by an activeDeadLetterRetryHandler -
Constructor Summary
ConstructorsConstructorDescriptionDeadLetter(int stacktraceMaxLength, String id, String jobId, String messageUUID, String receiptUUID, String subscriptionName, Object messagePayload, String errorMessage, String stacktrace, DeadLetterResolutionStatusEnum resolutionStatus, boolean supportsRetry, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.The message of the exception that caused this DeadLettergetId()getJobId()ID of the Billing Job where this dead letter originatedPayload of the central message object that kicked off the stage of the Billing Job where this DeadLetter occurredIf this DeadLetter occurred during message transit, id of the messageIf this DeadLetter occurred during message consumption, id of message receiptThe stacktrace of the exception that caused this DeadLetterintMaximum length of the stacktrace for this DeadLetterName of the message channel binding (subscription) where this DeadLetter originatedinthashCode()booleanWhether this instance is supported by an activeDeadLetterRetryHandlervoidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetErrorMessage(String errorMessage) The message of the exception that caused this DeadLettervoidvoidID of the Billing Job where this dead letter originatedvoidsetMessagePayload(Object messagePayload) Payload of the central message object that kicked off the stage of the Billing Job where this DeadLetter occurredvoidsetMessageUUID(String messageUUID) If this DeadLetter occurred during message transit, id of the messagevoidsetReceiptUUID(String receiptUUID) If this DeadLetter occurred during message consumption, id of message receiptvoidsetResolutionStatus(DeadLetterResolutionStatusEnum resolutionStatus) Resolution status of this DeadLettervoidsetStacktrace(String stacktrace) The stacktrace of the exception that caused this DeadLettervoidsetStacktraceMaxLength(int stacktraceMaxLength) Maximum length of the stacktrace for this DeadLettervoidsetSubscriptionName(String subscriptionName) Name of the message channel binding (subscription) where this DeadLetter originatedvoidsetSupportsRetry(boolean supportsRetry) Whether this instance is supported by an activeDeadLetterRetryHandlertoString()
-
Field Details
-
stacktraceMaxLength
protected int stacktraceMaxLengthMaximum length of the stacktrace for this DeadLetter -
id
-
jobId
ID of the Billing Job where this dead letter originated -
messageUUID
If this DeadLetter occurred during message transit, id of the message -
receiptUUID
If this DeadLetter occurred during message consumption, id of message receipt -
subscriptionName
Name of the message channel binding (subscription) where this DeadLetter originated -
messagePayload
Payload of the central message object that kicked off the stage of the Billing Job where this DeadLetter occurred -
errorMessage
The message of the exception that caused this DeadLetter -
stacktrace
The stacktrace of the exception that caused this DeadLetter -
resolutionStatus
Resolution status of this DeadLetter -
supportsRetry
protected boolean supportsRetryWhether this instance is supported by an activeDeadLetterRetryHandler
-
-
Constructor Details
-
DeadLetter
public DeadLetter() -
DeadLetter
public DeadLetter(int stacktraceMaxLength, String id, String jobId, String messageUUID, String receiptUUID, String subscriptionName, Object messagePayload, String errorMessage, String stacktrace, DeadLetterResolutionStatusEnum resolutionStatus, boolean supportsRetry, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
-
-
Method Details
-
getResolutionStatus
-
getStacktraceMaxLength
public int getStacktraceMaxLength()Maximum length of the stacktrace for this DeadLetter -
getId
-
getJobId
ID of the Billing Job where this dead letter originated -
getMessageUUID
If this DeadLetter occurred during message transit, id of the message -
getReceiptUUID
If this DeadLetter occurred during message consumption, id of message receipt -
getSubscriptionName
Name of the message channel binding (subscription) where this DeadLetter originated -
getMessagePayload
Payload of the central message object that kicked off the stage of the Billing Job where this DeadLetter occurred -
getErrorMessage
The message of the exception that caused this DeadLetter -
getStacktrace
The stacktrace of the exception that caused this DeadLetter -
isSupportsRetry
public boolean isSupportsRetry()Whether this instance is supported by an activeDeadLetterRetryHandler -
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
-
setStacktraceMaxLength
public void setStacktraceMaxLength(int stacktraceMaxLength) Maximum length of the stacktrace for this DeadLetter -
setId
-
setJobId
ID of the Billing Job where this dead letter originated -
setMessageUUID
If this DeadLetter occurred during message transit, id of the message -
setReceiptUUID
If this DeadLetter occurred during message consumption, id of message receipt -
setSubscriptionName
Name of the message channel binding (subscription) where this DeadLetter originated -
setMessagePayload
Payload of the central message object that kicked off the stage of the Billing Job where this DeadLetter occurred -
setErrorMessage
The message of the exception that caused this DeadLetter -
setStacktrace
The stacktrace of the exception that caused this DeadLetter -
setResolutionStatus
Resolution status of this DeadLetter -
setSupportsRetry
public void setSupportsRetry(boolean supportsRetry) Whether this instance is supported by an activeDeadLetterRetryHandler -
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-