Class RetryLeapArray
java.lang.Object
com.aizuda.snailjob.common.core.window.LeapArray<ConcurrentLinkedQueue<RetryTaskRequest>>
com.aizuda.snailjob.client.common.window.RetryLeapArray
通过滑动窗口上报异常数据
-
Field Summary
FieldsFields inherited from class com.aizuda.snailjob.common.core.window.LeapArray
array, intervalInMs, sampleCount, windowLengthInMs -
Constructor Summary
ConstructorsConstructorDescriptionRetryLeapArray(int sampleCount, int intervalInMs) RetryLeapArray(int sampleCount, int intervalInMs, Listener<RetryTaskRequest> listener) RetryLeapArray(int sampleCount, int intervalInMs, List<Listener<RetryTaskRequest>> listenerList) -
Method Summary
Modifier and TypeMethodDescriptionnewEmptyBucket(long timeMillis) protected WindowWrap<ConcurrentLinkedQueue<RetryTaskRequest>>resetWindowTo(WindowWrap<ConcurrentLinkedQueue<RetryTaskRequest>> windowWrap, long startTime) Methods inherited from class com.aizuda.snailjob.common.core.window.LeapArray
addWaiting, calculateTimeIdx, calculateWindowStart, currentWaiting, currentWindow, currentWindow, debug, getIntervalInMs, getIntervalInSecond, getPreviousWindow, getPreviousWindow, getSampleCount, getValidHead, getWindowValue, isWindowDeprecated, isWindowDeprecated, list, list, listAll, values, values
-
Field Details
-
listenerList
-
-
Constructor Details
-
RetryLeapArray
public RetryLeapArray(int sampleCount, int intervalInMs) -
RetryLeapArray
public RetryLeapArray(int sampleCount, int intervalInMs, List<Listener<RetryTaskRequest>> listenerList) -
RetryLeapArray
-
-
Method Details
-
newEmptyBucket
- Specified by:
newEmptyBucketin classLeapArray<ConcurrentLinkedQueue<RetryTaskRequest>>
-
resetWindowTo
protected WindowWrap<ConcurrentLinkedQueue<RetryTaskRequest>> resetWindowTo(WindowWrap<ConcurrentLinkedQueue<RetryTaskRequest>> windowWrap, long startTime) - Specified by:
resetWindowToin classLeapArray<ConcurrentLinkedQueue<RetryTaskRequest>>
-