public class S3SessionFactory extends java.lang.Object implements org.springframework.integration.file.remote.session.SessionFactory<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(AmazonS3 amazonS3) |
Modifier and Type | Method and Description |
---|---|
S3Session |
getSession() |
boolean |
isSharedSession() |
void |
resetSharedSession() |
public S3SessionFactory()
public S3SessionFactory(AmazonS3 amazonS3)
public S3Session getSession()
getSession
in interface org.springframework.integration.file.remote.session.SessionFactory<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