public class StorageSizeWithTimeLimitLogUploadStrategy extends DefaultLogUploadStrategy
LogUploadStrategy
.
Start log upload when there storage size is >= volumeThreshold bytes or records are stored for more then timeLimit TimeUnit units.Modifier and Type | Field and Description |
---|---|
protected long |
lastUploadTime |
batchCount, batchSize, countThreshold, isUploadLocked, maxParallelUploads, retryPeriod, timeout, uploadCheckPeriod, volumeThreshold
Constructor and Description |
---|
StorageSizeWithTimeLimitLogUploadStrategy(int volumeThreshold,
long timeLimit,
TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
protected LogUploadStrategyDecision |
checkUploadNeeded(LogStorageStatus status) |
getBatchCount, getBatchSize, getCountThreshold, getMaxParallelUploads, getTimeout, getUploadCheckPeriod, getVolumeThreshold, isUploadLocked, isUploadNeeded, lockUpload, onFailure, onTimeout, setBatch, setBatchCount, setCountThreshold, setMaxParallelUploads, setRetryPeriod, setTimeout, setUploadCheckPeriod, setVolumeThreshold, unlockUpload
public StorageSizeWithTimeLimitLogUploadStrategy(int volumeThreshold, long timeLimit, TimeUnit timeUnit)
protected LogUploadStrategyDecision checkUploadNeeded(LogStorageStatus status)
checkUploadNeeded
in class DefaultLogUploadStrategy
Copyright © 2015. All rights reserved.