Class GoogleCloudDatastoreStateRepository
java.lang.Object
org.togglz.googleclouddatastore.repository.GoogleCloudDatastoreStateRepository
- All Implemented Interfaces:
StateRepository
This repository implementation can be used to store the feature state in Google Cloud Datastore</>
GoogleCloudDatastoreStateRepository stores the feature state in the FeatureToggle kind.
- Author:
- Fábio Franco Uechi
-
Constructor Summary
ConstructorsConstructorDescriptionGoogleCloudDatastoreStateRepository(com.google.cloud.datastore.Datastore datastore) GoogleCloudDatastoreStateRepository(com.google.cloud.datastore.Datastore datastore, String kind) -
Method Summary
Modifier and TypeMethodDescriptiongetFeatureState(Feature feature) voidsetFeatureState(FeatureState featureState)
-
Constructor Details
-
GoogleCloudDatastoreStateRepository
@Inject public GoogleCloudDatastoreStateRepository(com.google.cloud.datastore.Datastore datastore) -
GoogleCloudDatastoreStateRepository
@Inject public GoogleCloudDatastoreStateRepository(com.google.cloud.datastore.Datastore datastore, String kind)
-
-
Method Details
-
getFeatureState
- Specified by:
getFeatureStatein interfaceStateRepository
-
setFeatureState
- Specified by:
setFeatureStatein interfaceStateRepository
-