public interface DataSource
extends java.io.Closeable
DataStore.
The standard implementations are:
Components.streamingDataSource() (the default), which
maintains a streaming connection to LaunchDarkly;
Components.pollingDataSource(), which polls for
updates at regular intervals;
Components.externalUpdatesOnly(), which does nothing
(on the assumption that another process will update the data store);
FileData, which reads flag data from
the filesystem.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Tells the component to shut down and release any resources it is using.
|
boolean |
isInitialized()
Returns true once the client has been initialized and will never return false again.
|
java.util.concurrent.Future<java.lang.Void> |
start()
Starts the client.
|
java.util.concurrent.Future<java.lang.Void> start()
Future's completion status indicates the client has been initialized.boolean isInitialized()
void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException - if there is an error while closing