| Modifier and Type | Class and Description |
|---|---|
class |
LoggingStateRepository
Simple implementation of
StateRepository which adds logging capabilities to an existing repository. |
| Constructor and Description |
|---|
LoggingStateRepository(StateRepository delegate)
Creates a logging facade for the supplied
StateRepository. |
LoggingStateRepository(StateRepository delegate,
Log log) |
LoggingStateRepository(StateRepository delegate,
String customLogMessage)
Creates a logging facade for the supplied
StateRepository using a custom log message. |
LoggingStateRepository(StateRepository delegate,
String customLogMessage,
Log log) |
| Modifier and Type | Method and Description |
|---|---|
StateRepository |
TogglzConfig.getStateRepository()
The
StateRepository Togglz should use to store feature state. |
| Modifier and Type | Method and Description |
|---|---|
FeatureManagerBuilder |
FeatureManagerBuilder.stateRepository(StateRepository stateRepository)
Use the supplied state repository for the feature manager.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CachingStateRepository
Simple implementation of
StateRepository which adds caching capabilities to an existing repository. |
| Constructor and Description |
|---|
CachingStateRepository(StateRepository delegate)
Creates a caching facade for the supplied
StateRepository. |
CachingStateRepository(StateRepository delegate,
long ttl)
Creates a caching facade for the supplied
StateRepository. |
CachingStateRepository(StateRepository delegate,
long ttl,
TimeUnit ttlTimeUnit)
Creates a caching facade for the supplied
StateRepository. |
| Modifier and Type | Class and Description |
|---|---|
class |
CompositeStateRepository
A
StateRepository that is composed of one or more underlying
repositories. |
| Modifier and Type | Method and Description |
|---|---|
List<StateRepository> |
CompositeStateRepository.RepositorySelector.getSelected(List<StateRepository> from)
Returns a subset of state repositories from the specified collection.
|
| Modifier and Type | Method and Description |
|---|---|
List<StateRepository> |
CompositeStateRepository.RepositorySelector.getSelected(List<StateRepository> from)
Returns a subset of state repositories from the specified collection.
|
| Constructor and Description |
|---|
CompositeStateRepository(StateRepository... repositories)
Creates a composite state repository using the specified underlying state
repositories.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FileBasedStateRepository
A
PropertyBasedStateRepository that stores the state of features using a standard Java properties file. |
| Modifier and Type | Class and Description |
|---|---|
class |
JDBCStateRepository
This repository implementation can be used to store the feature state in SQL database using the standard JDBC API.
|
| Modifier and Type | Class and Description |
|---|---|
class |
InMemoryStateRepository
A very simply implementation of
StateRepository entirely on memory. |
| Modifier and Type | Class and Description |
|---|---|
class |
PropertyBasedStateRepository
This implementation of
StateRepository stores the state of features in a Properties format. |
Copyright © 2018. All Rights Reserved.