public class LongestTraceStorageStrategy extends Object implements TraceStorageStrategy
| Constructor and Description |
|---|
LongestTraceStorageStrategy() |
| Modifier and Type | Method and Description |
|---|---|
RequestTrace |
getTraceForRemoval(Collection<RequestTrace> traces,
int maxSize,
RequestTrace traceToRemove)
Gets the trace that needs removing.
|
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 present or null if no particular candidate if favouredTraceStorageStrategy.getTraceForRemoval(Collection, int, RequestTrace)Copyright © 2021. All rights reserved.