public class RecordCountLogUploadStrategy extends DefaultLogUploadStrategy
LogUploadStrategy
.
Start log upload when there is countThreshold records in storage.batchCount, batchSize, countThreshold, isUploadLocked, maxParallelUploads, retryPeriod, timeout, uploadCheckPeriod, volumeThreshold
Constructor and Description |
---|
RecordCountLogUploadStrategy(int countThreshold) |
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 RecordCountLogUploadStrategy(int countThreshold)
protected LogUploadStrategyDecision checkUploadNeeded(LogStorageStatus status)
checkUploadNeeded
in class DefaultLogUploadStrategy
Copyright © 2015. All rights reserved.