Package co.featbit.server.exterior
Interface DataSynchronizer
- All Superinterfaces:
AutoCloseable,Closeable
Interface to receive updates to feature flags, user segments, and anything
else that might come from feature flag center, and passes them to a
DataStorage.
The standard implementations are:
-
Factory.dataSynchronizerFactory()(the default), which maintains a streaming connection; -
Factory.externalDataSynchronization(), which does nothing (on the assumption that another process will update the data store);
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true once the client has been initialized and will never return false again.start()Starts the client update processing.
-
Method Details
-
start
Starts the client update processing.- Returns:
Future's completion status indicates the client has been initialized.
-
isInitialized
boolean isInitialized()Returns true once the client has been initialized and will never return false again.- Returns:
- true if the client has been initialized
-