Interface ResetContext<T>

Type Parameters:
T - the type of payload contained in the message
All Superinterfaces:
Message<T>, Serializable
All Known Implementing Classes:
GenericResetContext

public interface ResetContext<T> extends Message<T>
Represents a Message initiating the reset of an Event Handling Component. A payload of T can be provided to support the reset operation handling this message.
Since:
4.4
Author:
Steven van Beelen
  • Method Details

    • withMetaData

      ResetContext<T> withMetaData(@Nonnull Map<String,?> metaData)
      Returns a copy of this ResetContext with the given metaData. The payload remains unchanged.

      While the implementation returned may be different than the implementation of this, implementations must take special care in returning the same type of Message (e.g. EventMessage, DomainEventMessage) to prevent errors further downstream.

      Specified by:
      withMetaData in interface Message<T>
      Parameters:
      metaData - the new MetaData for the Message
      Returns:
      a copy of this message with the given MetaData
    • andMetaData

      ResetContext<T> andMetaData(@Nonnull Map<String,?> metaData)
      Returns a copy of this ResetContext with it MetaData merged with the given metaData. The payload remains unchanged.
      Specified by:
      andMetaData in interface Message<T>
      Parameters:
      metaData - the MetaData to merge with
      Returns:
      a copy of this message with the given MetaData