Package org.togglz.s3
Class S3StateRepository
java.lang.Object
org.togglz.s3.S3StateRepository
- All Implemented Interfaces:
StateRepository
A state repository that uses Amazon S3.
The repository is configured using the S3StateRepository.Builder
You must already have a bucket provisioned before you create this repository.
- Author:
- Mark Richardson
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetFeatureState(Feature feature) static S3StateRepository.BuildernewBuilder(software.amazon.awssdk.services.s3.S3Client client, String bucketName) Creates a new builder for creating aS3StateRepository.voidsetFeatureState(FeatureState featureState)
-
Method Details
-
getFeatureState
- Specified by:
getFeatureStatein interfaceStateRepository
-
setFeatureState
- Specified by:
setFeatureStatein interfaceStateRepository
-
newBuilder
public static S3StateRepository.Builder newBuilder(software.amazon.awssdk.services.s3.S3Client client, String bucketName) Creates a new builder for creating aS3StateRepository.- Parameters:
client- the client instance to use for connecting to amazon s3bucketName- The name of the bucket to use- Returns:
- a Builder
-