public class LongestTraceStorageStrategy extends Object implements TraceStorageStrategy
RequestTrace object's
natural ordering.| Constructor and Description |
|---|
LongestTraceStorageStrategy() |
| Modifier and Type | Method and Description |
|---|---|
RequestTrace |
getTraceForRemoval(Collection<RequestTrace> traces,
int maxSize)
Gets the trace that needs removing.
|
RequestTrace |
getTraceForRemoval(Collection<RequestTrace> traces,
int maxSize,
RequestTrace traceToRemove)
Gets the trace that needs removing.
|
public RequestTrace getTraceForRemoval(Collection<RequestTrace> traces, int maxSize)
getTraceForRemoval in interface TraceStorageStrategytraces - the list of traces to test.maxSize - the maximum size of the list.public RequestTrace getTraceForRemoval(Collection<RequestTrace> traces, int maxSize, RequestTrace traceToRemove)
getTraceForRemoval in interface TraceStorageStrategytraces - the list of traces to test.maxSize - the maximum size of the list.traceToRemove - the trace to remove if presentCopyright © 2019. All rights reserved.