Class UnableToClaimTokenException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.common.AxonTransientException
org.axonframework.messaging.eventhandling.processing.streaming.token.store.UnableToClaimTokenException
- All Implemented Interfaces:
Serializable
Exception indicating that a processor tried to claim a Token (either by retrieving or updating it) that has already
been claimed by another process. This typically happens when two processes (JVM's) contain processing with the same
name (and potentially the same configuration). In such case, only the first processor can use the TrackingToken.
Processes may retry obtaining the claim, preferably after a brief waiting period.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnableToClaimTokenException(String message) Initialize the exception with givenmessage.UnableToClaimTokenException(String message, Throwable cause) Initialize the exception with givenmessageandcause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnableToClaimTokenException
Initialize the exception with givenmessage.- Parameters:
message- The message describing the exception
-
UnableToClaimTokenException
Initialize the exception with givenmessageandcause.- Parameters:
message- The message describing the exceptioncause- The cause of the failure
-