Interface DataSource

All Superinterfaces:
java.lang.AutoCloseable, java.io.Closeable

public interface DataSource
extends java.io.Closeable
Interface for an object that receives updates to feature flags, user segments, and anything else that might come from LaunchDarkly, and passes them to a DataStore.

The standard implementations are:

Since:
5.0.0
  • Method Summary

    Modifier and Type Method 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.
  • Method Details

    • start

      java.util.concurrent.Future<java.lang.Void> start()
      Starts the client.
      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
    • close

      void close() throws java.io.IOException
      Tells the component to shut down and release any resources it is using.
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Throws:
      java.io.IOException - if there is an error while closing