Class InMemoryAuditEventRepository
java.lang.Object
org.springframework.boot.actuate.audit.InMemoryAuditEventRepository
- All Implemented Interfaces:
- AuditEventRepository
In-memory 
AuditEventRepository implementation.- Since:
- 1.0.0
- Author:
- Dave Syer, Phillip Webb, Vedran Pavic
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(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.
- 
Constructor Details- 
InMemoryAuditEventRepositorypublic InMemoryAuditEventRepository()
- 
InMemoryAuditEventRepositorypublic InMemoryAuditEventRepository(int capacity) 
 
- 
- 
Method Details- 
setCapacitypublic void setCapacity(int capacity) Set the capacity of this event repository.- Parameters:
- capacity- the capacity
 
- 
addDescription copied from interface:AuditEventRepositoryLog an event.- Specified by:
- addin interface- AuditEventRepository
- Parameters:
- event- the audit event to log
 
- 
findDescription copied from interface:AuditEventRepositoryFind audit events of specified type relating to the specified principal that occurredafterthe time provided.- Specified by:
- findin interface- AuditEventRepository
- Parameters:
- principal- the principal name to search for (or- nullif unrestricted)
- after- time after which an event must have occurred (or- nullif unrestricted)
- type- the event type to search for (or- nullif unrestricted)
- Returns:
- audit events of specified type relating to the principal
 
 
-