Class S3SessionFactory

java.lang.Object
org.springframework.integration.aws.support.S3SessionFactory
All Implemented Interfaces:
org.springframework.integration.file.remote.session.SessionFactory<software.amazon.awssdk.services.s3.model.S3Object>, org.springframework.integration.file.remote.session.SharedSessionCapable

public class S3SessionFactory extends Object implements org.springframework.integration.file.remote.session.SessionFactory<software.amazon.awssdk.services.s3.model.S3Object>, org.springframework.integration.file.remote.session.SharedSessionCapable
An Amazon S3 specific SessionFactory implementation. Also, this class implements SharedSessionCapable around the single instance, since the S3Session is simple thread-safe wrapper for the S3Client.
Author:
Artem Bilan, Xavier François
  • Constructor Details

    • S3SessionFactory

      public S3SessionFactory()
    • S3SessionFactory

      public S3SessionFactory(software.amazon.awssdk.services.s3.S3Client amazonS3)
  • Method Details

    • getSession

      public S3Session getSession()
      Specified by:
      getSession in interface org.springframework.integration.file.remote.session.SessionFactory<software.amazon.awssdk.services.s3.model.S3Object>
    • isSharedSession

      public boolean isSharedSession()
      Specified by:
      isSharedSession in interface org.springframework.integration.file.remote.session.SharedSessionCapable
    • resetSharedSession

      public void resetSharedSession()
      Specified by:
      resetSharedSession in interface org.springframework.integration.file.remote.session.SharedSessionCapable
    • setEndpoint

      public void setEndpoint(String endpoint)