public class S3SessionFactory
extends java.lang.Object
implements org.springframework.integration.file.remote.session.SessionFactory<com.amazonaws.services.s3.model.S3ObjectSummary>, org.springframework.integration.file.remote.session.SharedSessionCapable
SessionFactory
implementation.
Also this class implements SharedSessionCapable
around the single instance,
since the S3Session
is simple thread-safe wrapper for the AmazonS3
.Constructor and Description |
---|
S3SessionFactory() |
S3SessionFactory(com.amazonaws.services.s3.AmazonS3 amazonS3) |
S3SessionFactory(com.amazonaws.services.s3.AmazonS3 amazonS3,
org.springframework.cloud.aws.core.env.ResourceIdResolver resourceIdResolver) |
Modifier and Type | Method and Description |
---|---|
S3Session |
getSession() |
boolean |
isSharedSession() |
void |
resetSharedSession() |
public S3SessionFactory()
public S3SessionFactory(com.amazonaws.services.s3.AmazonS3 amazonS3)
public S3SessionFactory(com.amazonaws.services.s3.AmazonS3 amazonS3, org.springframework.cloud.aws.core.env.ResourceIdResolver resourceIdResolver)
public S3Session getSession()
getSession
in interface org.springframework.integration.file.remote.session.SessionFactory<com.amazonaws.services.s3.model.S3ObjectSummary>
public boolean isSharedSession()
isSharedSession
in interface org.springframework.integration.file.remote.session.SharedSessionCapable
public void resetSharedSession()
resetSharedSession
in interface org.springframework.integration.file.remote.session.SharedSessionCapable