Class InMemoryRequestJournalStore
- java.lang.Object
-
- com.github.tomakehurst.wiremock.store.InMemoryRequestJournalStore
-
- All Implemented Interfaces:
RequestJournalStore,Store<java.util.UUID,ServeEvent>
public class InMemoryRequestJournalStore extends java.lang.Object implements RequestJournalStore
-
-
Constructor Summary
Constructors Constructor Description InMemoryRequestJournalStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(ServeEvent event)voidclear()java.util.Optional<ServeEvent>get(java.util.UUID id)java.util.stream.Stream<ServeEvent>getAll()java.util.stream.Stream<java.util.UUID>getAllKeys()voidput(java.util.UUID id, ServeEvent event)voidremove(java.util.UUID id)voidremoveLast()
-
-
-
Method Detail
-
add
public void add(ServeEvent event)
- Specified by:
addin interfaceRequestJournalStore
-
getAll
public java.util.stream.Stream<ServeEvent> getAll()
- Specified by:
getAllin interfaceRequestJournalStore
-
removeLast
public void removeLast()
- Specified by:
removeLastin interfaceRequestJournalStore
-
getAllKeys
public java.util.stream.Stream<java.util.UUID> getAllKeys()
- Specified by:
getAllKeysin interfaceStore<java.util.UUID,ServeEvent>
-
get
public java.util.Optional<ServeEvent> get(java.util.UUID id)
- Specified by:
getin interfaceStore<java.util.UUID,ServeEvent>
-
put
public void put(java.util.UUID id, ServeEvent event)- Specified by:
putin interfaceStore<java.util.UUID,ServeEvent>
-
remove
public void remove(java.util.UUID id)
- Specified by:
removein interfaceStore<java.util.UUID,ServeEvent>
-
clear
public void clear()
- Specified by:
clearin interfaceStore<java.util.UUID,ServeEvent>
-
-