public class InMemoryRequestJournal extends java.lang.Object implements RequestJournal
| Constructor and Description |
|---|
InMemoryRequestJournal(com.google.common.base.Optional<java.lang.Integer> maxEntries,
java.util.Map<java.lang.String,RequestMatcherExtension> customMatchers) |
| Modifier and Type | Method and Description |
|---|---|
int |
countRequestsMatching(RequestPattern requestPattern) |
java.util.List<ServeEvent> |
getAllServeEvents() |
java.util.List<LoggedRequest> |
getRequestsMatching(RequestPattern requestPattern) |
com.google.common.base.Optional<ServeEvent> |
getServeEvent(java.util.UUID id) |
void |
removeEvent(java.util.UUID eventId) |
java.util.List<ServeEvent> |
removeEventsMatching(RequestPattern requestPattern) |
java.util.List<ServeEvent> |
removeServeEventsForStubsMatchingMetadata(StringValuePattern metadataPattern) |
void |
requestReceived(ServeEvent serveEvent) |
void |
reset() |
public InMemoryRequestJournal(com.google.common.base.Optional<java.lang.Integer> maxEntries,
java.util.Map<java.lang.String,RequestMatcherExtension> customMatchers)
public int countRequestsMatching(RequestPattern requestPattern)
countRequestsMatching in interface RequestJournalpublic java.util.List<LoggedRequest> getRequestsMatching(RequestPattern requestPattern)
getRequestsMatching in interface RequestJournalpublic void requestReceived(ServeEvent serveEvent)
requestReceived in interface RequestJournalpublic void removeEvent(java.util.UUID eventId)
removeEvent in interface RequestJournalpublic java.util.List<ServeEvent> removeEventsMatching(RequestPattern requestPattern)
removeEventsMatching in interface RequestJournalpublic java.util.List<ServeEvent> removeServeEventsForStubsMatchingMetadata(StringValuePattern metadataPattern)
removeServeEventsForStubsMatchingMetadata in interface RequestJournalpublic java.util.List<ServeEvent> getAllServeEvents()
getAllServeEvents in interface RequestJournalpublic com.google.common.base.Optional<ServeEvent> getServeEvent(java.util.UUID id)
getServeEvent in interface RequestJournalpublic void reset()
reset in interface RequestJournal