Class GcsSessionFactory
- java.lang.Object
-
- com.google.cloud.spring.storage.integration.GcsSessionFactory
-
- All Implemented Interfaces:
org.springframework.integration.file.remote.session.SessionFactory<BlobInfo>,org.springframework.integration.file.remote.session.SharedSessionCapable
public class GcsSessionFactory extends Object implements org.springframework.integration.file.remote.session.SessionFactory<BlobInfo>, org.springframework.integration.file.remote.session.SharedSessionCapable
A session factory implementation for Google Cloud Storage.
-
-
Constructor Summary
Constructors Constructor Description GcsSessionFactory(Storage gcs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.integration.file.remote.session.Session<BlobInfo>getSession()booleanisSharedSession()voidresetSharedSession()Does nothing - this object doesn't need to be reset to be shared.
-
-
-
Constructor Detail
-
GcsSessionFactory
public GcsSessionFactory(Storage gcs)
-
-
Method Detail
-
getSession
public org.springframework.integration.file.remote.session.Session<BlobInfo> getSession()
- Specified by:
getSessionin interfaceorg.springframework.integration.file.remote.session.SessionFactory<BlobInfo>
-
isSharedSession
public boolean isSharedSession()
- Specified by:
isSharedSessionin interfaceorg.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:
resetSharedSessionin interfaceorg.springframework.integration.file.remote.session.SharedSessionCapable
-
-