public interface RequestTraceStoreInterface
RequestTrace objects.| Modifier and Type | Method and Description |
|---|---|
RequestTrace |
addTrace(RequestTrace trace)
Adds a request trace to the store.
|
RequestTrace |
addTrace(RequestTrace trace,
RequestTrace traceToRemove)
Adds a request trace to the store, removing the specified trace if present and necessary.
|
Collection<RequestTrace> |
emptyStore()
Removes all of the traces from the store.
|
int |
getStoreSize()
Gets the size of the store.
|
Collection<RequestTrace> |
getTraces()
Gets the entire contents of the store.
|
Collection<RequestTrace> |
getTraces(int limit)
Gets the contents of the store, up to a limit number of items.
|
void |
setSize(int size)
Sets the maximum size of the store.
|
RequestTrace addTrace(RequestTrace trace)
trace - the trace to add.RequestTrace addTrace(RequestTrace trace, RequestTrace traceToRemove)
trace - The trace to addtraceToRemove - The trace to remove if presentCollection<RequestTrace> getTraces()
Collection<RequestTrace> getTraces(int limit)
limit - the maximum number of traces to return.void setSize(int size)
size - the maximum size of the store.int getStoreSize()
Collection<RequestTrace> emptyStore()
Copyright © 2019. All rights reserved.