public class InMemoryAuditEventRepository extends Object implements AuditEventRepository
AuditEventRepository implementation.| Constructor and Description |
|---|
InMemoryAuditEventRepository() |
InMemoryAuditEventRepository(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
setCapacity(int capacity) |
public InMemoryAuditEventRepository()
public InMemoryAuditEventRepository(int capacity)
public void setCapacity(int capacity)
capacity - the capacity to setpublic List<AuditEvent> find(String principal, Date after)
AuditEventRepositoryfind in interface AuditEventRepositoryprincipal - the principal name to search forafter - timestamp of earliest result requiredpublic void add(AuditEvent event)
AuditEventRepositoryadd in interface AuditEventRepositoryevent - the audit event to logCopyright © 2015 Pivotal Software, Inc.. All rights reserved.