类 InMemoryAuditEventRepository
- java.lang.Object
- org.springframework.boot.actuate.audit.InMemoryAuditEventRepository
- 所有已实现的接口:
AuditEventRepository
public class InMemoryAuditEventRepository extends Object implements AuditEventRepository
In-memoryAuditEventRepository
implementation.
构造器概要
构造器 构造器 说明 InMemoryAuditEventRepository()
InMemoryAuditEventRepository(int capacity)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
add(AuditEvent event)
Log an event.List<AuditEvent>
find(String principal, Date after)
Find audit events relating to the specified principal since the time provided.List<AuditEvent>
find(String principal, Date after, String type)
Find audit events of specified type relating to the specified principal since the time provided.List<AuditEvent>
find(Date after)
Find audit events since 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
public void add(AuditEvent event)
从接口复制的说明:AuditEventRepository
Log an event.- 指定者:
add
在接口中AuditEventRepository
- 参数:
event
- the audit event to log
find
public List<AuditEvent> find(Date after)
从接口复制的说明:AuditEventRepository
Find audit events since the time provided.- 指定者:
find
在接口中AuditEventRepository
- 参数:
after
- timestamp of earliest result required (ornull
if unrestricted)- 返回:
- audit events
find
public List<AuditEvent> find(String principal, Date after)
从接口复制的说明:AuditEventRepository
Find audit events relating to the specified principal since the time provided.- 指定者:
find
在接口中AuditEventRepository
- 参数:
principal
- the principal name to search for (ornull
if unrestricted)after
- timestamp of earliest result required (ornull
if unrestricted)- 返回:
- audit events relating to the principal
find
public List<AuditEvent> find(String principal, Date after, String type)
从接口复制的说明:AuditEventRepository
Find audit events of specified type relating to the specified principal since the time provided.- 指定者:
find
在接口中AuditEventRepository
- 参数:
principal
- the principal name to search for (ornull
if unrestricted)after
- timestamp of earliest result required (ornull
if unrestricted)type
- the event type to search for (ornull
if unrestricted)- 返回:
- audit events of specified type relating to the principal