use of org.commonjava.maven.galley.io.NoCacheTransferDecorator in project indy by Commonjava.
the class DefaultGalleyStorageProvider method setupTransferDecoratorPipeline.
/**
* The order is important. We put the checksum decorator at the last because some decorators may change the content.
*/
private void setupTransferDecoratorPipeline() {
List<TransferDecorator> decorators = new ArrayList<>();
decorators.add(new IOLatencyDecorator(timerProviderFunction(), meterProvider(), cumulativeTimer()));
decorators.add(new NoCacheTransferDecorator(specialPathManager));
decorators.add(new UploadMetadataGenTransferDecorator(specialPathManager, timerProviderFunction()));
for (TransferDecorator decorator : transferDecorators) {
decorators.add(decorator);
}
decorators.add(getChecksummingTransferDecorator());
if (featureConfig.getFileChangeTracking()) {
decorators.add(new FileChangeTrackingDecorator(config));
}
transferDecorator = new TransferDecoratorManager(decorators);
}
Aggregations