java.lang.Object
org.axonframework.messaging.eventhandling.deadletter.jdbc.JdbcDeadLetter<E>
Type Parameters:
E - The EventMessage contained in this DeadLetter.
All Implemented Interfaces:
DeadLetter<E>

public class JdbcDeadLetter<E extends EventMessage> extends Object implements DeadLetter<E>
A DeadLetter that was saved to a JDBC-backed database and reconstructed from it. This object is immutable and should only be changed using the withCause(Throwable), withDiagnostics(Metadata) and markTouched() functions. These reconstruct a new object with the specified new properties.
Since:
4.8.0
Author:
Mitchell Herrijgers, Steven van Beelen
  • Constructor Details

    • JdbcDeadLetter

      public JdbcDeadLetter(String identifier, long index, String sequenceIdentifier, Instant enqueuedAt, Instant lastTouched, Cause cause, Metadata diagnostics, E message, Context context)
      Constructs a new JdbcDeadLetter with all possible parameters.
      Parameters:
      identifier - The identifier of the dead letter.
      index - The index of the dead letter.
      sequenceIdentifier - The sequence identifier of the dead letter.
      enqueuedAt - The time the letter was enqueued.
      lastTouched - The time the letter was last touched.
      cause - The cause of enqueueing, can be null if it was queued because there was another letter in the same sequence (based on the sequenceIdentifier).
      diagnostics - The diagnostics provided during enqueueing.
      message - The message that was enqueued.
      context - The context containing restored resources such as tracking token and domain info.
  • Method Details