Class AuditEntryHandle

  • All Implemented Interfaces:
    Serializable

    public final class AuditEntryHandle
    extends Object
    implements Serializable
    Handle to a protocol entry that was just written, returned by the record methods of AuditService. Lets a caller reference the created entry (e.g. for correlation). Intentionally minimal, and distinct from any future read model of an entry.

    The type is Serializable so it may cross the master ⇄ frontend RPC boundary.

    Since:
    8.5.6
    Author:
    Norman Lorenz
    See Also:
    Serialized Form
    • Constructor Detail

      • AuditEntryHandle

        public AuditEntryHandle​(Long id,
                                Instant createdAt)
        Creates a new AuditEntryHandle instance.
        Parameters:
        id - The unique ID of the created protocol entry.
        createdAt - When the entry was created (server-managed).
    • Method Detail

      • getId

        public Long getId()
        The unique ID of the created protocol entry.
      • getCreatedAt

        public Instant getCreatedAt()
        When the entry was created (server-managed).
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object