Class AggregateBlacklistedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.common.AxonTransientException
org.axonframework.disruptor.commandhandling.AggregateStateCorruptedException
org.axonframework.disruptor.commandhandling.AggregateBlacklistedException
- All Implemented Interfaces:
Serializable
Exception indicating that an aggregate has been blacklisted by the DisruptorCommandBus. The cause of the blacklisting
is provided in the
Throwable.getCause() of the exception.
Aggregates are blacklisted when the DisruptorCommandBus cannot guarantee that the state of the aggregate in its cache
is correct. A cleanup notification will be handled by the disruptor to recover from this, by clearing the cached data
of the aggregate. After the cached information has been cleared, the blacklist status is removed.
It is generally safe to retry any commands that resulted in this exception, unless the cause is clearly
non-transient.- Since:
- 2.0
- Author:
- Allard Buijze
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAggregateBlacklistedException(String aggregateIdentifier, String message, Throwable cause) Initializes the exception with givenaggregateIdentifier, given explanatorymessageandcause. -
Method Summary
Methods inherited from class org.axonframework.disruptor.commandhandling.AggregateStateCorruptedException
getAggregateIdentifierMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AggregateBlacklistedException
Initializes the exception with givenaggregateIdentifier, given explanatorymessageandcause.- Parameters:
aggregateIdentifier- The identifier of the blacklisted aggregatemessage- The message explaining why the blacklisting occurredcause- The cause of the blacklist
-