com.amazonaws.services.s3.transfer.PersistableTransfer Java Examples

The following examples show how to use com.amazonaws.services.s3.transfer.PersistableTransfer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AmazonS3SinkMockTests.java    From spring-cloud-stream-app-starters with Apache License 2.0 6 votes vote down vote up
@Bean
public S3ProgressListener s3ProgressListener() {
	return new S3ProgressListener() {

		@Override
		public void onPersistableTransfer(PersistableTransfer persistableTransfer) {

		}

		@Override
		public void progressChanged(ProgressEvent progressEvent) {
			if (ProgressEventType.TRANSFER_COMPLETED_EVENT.equals(progressEvent.getEventType())) {
				transferCompletedLatch().countDown();
			}
		}

	};
}
 
Example #2
Source File: S3Restorer.java    From cassandra-backup with Apache License 2.0 4 votes vote down vote up
@Override
public void onPersistableTransfer(final PersistableTransfer persistableTransfer) {
    // We don't resume downloads
}
 
Example #3
Source File: S3Backuper.java    From cassandra-backup with Apache License 2.0 4 votes vote down vote up
@Override
public void onPersistableTransfer(final PersistableTransfer persistableTransfer) {
    // We don't resume uploads
}
 
Example #4
Source File: AwsS3Storage.java    From ecs-sync with Apache License 2.0 4 votes vote down vote up
@Override
public void onPersistableTransfer(PersistableTransfer persistableTransfer) {
}