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