类 InMemoryAuditEventRepository

java.lang.Object
org.springframework.boot.actuate.audit.InMemoryAuditEventRepository
所有已实现的接口:
AuditEventRepository

public class InMemoryAuditEventRepository extends Object implements AuditEventRepository
In-memory AuditEventRepository implementation.
从以下版本开始:
1.0.0
作者:
Dave Syer, Phillip Webb, Vedran Pavic
  • 构造器详细资料

    • InMemoryAuditEventRepository

      public InMemoryAuditEventRepository()
    • InMemoryAuditEventRepository

      public InMemoryAuditEventRepository(int capacity)
  • 方法详细资料

    • setCapacity

      public void setCapacity(int capacity)
      Set the capacity of this event repository.
      参数:
      capacity - the capacity
    • add

      public void add(AuditEvent event)
      从接口复制的说明: AuditEventRepository
      Log an event.
      指定者:
      add 在接口中 AuditEventRepository
      参数:
      event - the audit event to log
    • find

      public List<AuditEvent> find(String principal, Instant after, String type)
      从接口复制的说明: AuditEventRepository
      Find audit events of specified type relating to the specified principal that occurred after the time provided.
      指定者:
      find 在接口中 AuditEventRepository
      参数:
      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)
      返回:
      audit events of specified type relating to the principal