类 InMemoryAuditEventRepository
java.lang.Object
org.springframework.boot.actuate.audit.InMemoryAuditEventRepository
- 所有已实现的接口:
AuditEventRepository
In-memory
AuditEventRepository implementation.- 从以下版本开始:
- 1.0.0
- 作者:
- Dave Syer, Phillip Webb, Vedran Pavic
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidadd(AuditEvent event) Log an event.Find audit events of specified type relating to the specified principal that occurredafterthe time provided.voidsetCapacity(int capacity) Set the capacity of this event repository.
-
构造器详细资料
-
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
从接口复制的说明:AuditEventRepositoryLog an event.- 指定者:
add在接口中AuditEventRepository- 参数:
event- the audit event to log
-
find
从接口复制的说明:AuditEventRepositoryFind audit events of specified type relating to the specified principal that occurredafterthe time provided.- 指定者:
find在接口中AuditEventRepository- 参数:
principal- the principal name to search for (ornullif unrestricted)after- time after which an event must have occurred (ornullif unrestricted)type- the event type to search for (ornullif unrestricted)- 返回:
- audit events of specified type relating to the principal
-