Class InboundMessageId

java.lang.Object
at.aimon.session.web.inbox.InboundMessageId

public final class InboundMessageId extends Object
Stable opaque identifier of an InboundMessage appended to a ConversationInbox.

The implementation backing the inbox issues the value at deliver time (UUID for in-memory, Redis Streams entry id like "1700000000000-0" for Redis). Callers and the manager treat the value as opaque — only equality and value extraction are meaningful.

Immutable value object.

  • Method Details

    • of

      public static InboundMessageId of(String value)
      Wraps an opaque string into an InboundMessageId.
      Parameters:
      value - the opaque value (must not be null, must not be empty)
      Returns:
      a new InboundMessageId
    • value

      public String value()
      Returns the underlying opaque value.
      Returns:
      the value (never null, never empty)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object