Class GenericResetContext

java.lang.Object
org.axonframework.messaging.core.MessageDecorator
org.axonframework.messaging.eventhandling.replay.GenericResetContext
All Implemented Interfaces:
Message, ResetContext

public class GenericResetContext extends MessageDecorator implements ResetContext
Generic implementation of the ResetContext interface.
Since:
4.4.0
Author:
Steven van Beelen
  • Constructor Details

    • GenericResetContext

      public GenericResetContext(@Nonnull MessageType type, @Nullable Object payload)
      Constructs a GenericResetContext for the given type and payload.

      The Metadata defaults to an empty instance.

      Parameters:
      type - The type for this ResetContext.
      payload - The payload for this ResetContext.
    • GenericResetContext

      public GenericResetContext(@Nonnull MessageType type, @Nullable Object payload, @Nonnull Map<String,String> metadata)
      Constructs a GenericResetContext for the given type, payload, and metadata.
      Parameters:
      type - The type for this ResetContext.
      payload - The payload for this ResetContext.
      metadata - The metadata for this ResetContext.
    • GenericResetContext

      public GenericResetContext(@Nonnull Message delegate)
      Constructs a GenericResetContext for the given delegate, intended to reconstruct another ResetContext.

      Unlike the other constructors, this constructor will not attempt to retrieve any correlation data from the Unit of Work.

      Parameters:
      delegate - The Message containing payload, type, identifier and metadata for the EventMessage to reconstruct.
  • Method Details