Class CreateAuditTrail

All Implemented Interfaces:
JsonType

public class CreateAuditTrail extends Command
Command to configure to use a search collection as a searchable audit trail.

An audit trail ensures that changes to documents are retained for a minimum duration. This is particularly useful for compliance and debugging purposes, as it allows documents to be replayed or inspected after modification or deletion.

  • Constructor Details

    • CreateAuditTrail

      public CreateAuditTrail()
  • Method Details

    • routingKey

      public String routingKey()
      Uses the collection name as routing key to ensure consistent configuration.
      Overrides:
      routingKey in class Command
      Returns:
      a routing key string, or null if not specified