org.springframework.boot.actuate.audit

Class InMemoryAuditEventRepository

  • java.lang.Object
    • org.springframework.boot.actuate.audit.InMemoryAuditEventRepository
    • Constructor Detail

      • InMemoryAuditEventRepository

        public InMemoryAuditEventRepository()
      • InMemoryAuditEventRepository

        public InMemoryAuditEventRepository(int capacity)
    • Method Detail

      • setCapacity

        public void setCapacity(int capacity)
        Set the capacity of this event repository.
        Parameters:
        capacity - the capacity
      • find

        public List<AuditEvent> find(String principal,
                                     Instant after,
                                     String type)
        Description copied from interface: AuditEventRepository
        Find audit events of specified type relating to the specified principal that occurred after the time provided.
        Specified by:
        find in interface AuditEventRepository
        Parameters:
        principal - the principal name to search for (or null if unrestricted)
        after - time after which an event must have occurred (or null if unrestricted)
        type - the event type to search for (or null if unrestricted)
        Returns:
        audit events of specified type relating to the principal