Class GcsSessionFactory

java.lang.Object
com.google.cloud.spring.storage.integration.GcsSessionFactory
All Implemented Interfaces:
org.springframework.integration.file.remote.session.SessionFactory<com.google.cloud.storage.BlobInfo>, org.springframework.integration.file.remote.session.SharedSessionCapable

public class GcsSessionFactory extends Object implements org.springframework.integration.file.remote.session.SessionFactory<com.google.cloud.storage.BlobInfo>, org.springframework.integration.file.remote.session.SharedSessionCapable
A session factory implementation for Google Cloud Storage.
  • Constructor Details

    • GcsSessionFactory

      public GcsSessionFactory(com.google.cloud.storage.Storage gcs)
  • Method Details

    • getSession

      public org.springframework.integration.file.remote.session.Session<com.google.cloud.storage.BlobInfo> getSession()
      Specified by:
      getSession in interface org.springframework.integration.file.remote.session.SessionFactory<com.google.cloud.storage.BlobInfo>
    • isSharedSession

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

      public void resetSharedSession()
      Does nothing - this object doesn't need to be reset to be shared.
      Specified by:
      resetSharedSession in interface org.springframework.integration.file.remote.session.SharedSessionCapable