Class MessageContext

java.lang.Object
overit.geocall.event.model.MessageContext

public class MessageContext extends Object
Class that collects general context information related to a message.
  • Field Details

  • Constructor Details

    • MessageContext

      public MessageContext(Identity identity)
      Instantiates a new Message context.
      Parameters:
      identity - the identity
  • Method Details

    • getUser

      public Long getUser()
      Gets user.
      Returns:
      the user
    • getTenantId

      public Long getTenantId()
      Gets factory.
      Returns:
      the factory
    • getHostname

      public String getHostname()
      Gets hostname.
      Returns:
      the hostname
    • getTimestamp

      public Instant getTimestamp()
      Gets timestamp.
      Returns:
      the timestamp
    • getSequence

      public int getSequence()
      Gets sequence.
      Returns:
      the sequence
    • getConsumedFrom

      public String getConsumedFrom()
    • getDto

      public String getDto()
      Gets DTO class name.
      Returns:
      the DTO class name
    • getMessageId

      public String getMessageId()
      Gets message ID.
      Returns:
      the message ID from the message broker (e.g., SQS messageId, Kafka offset)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object