com.launchdarkly.sdk.server.interfaces.DataStoreFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of launchdarkly-java-server-sdk Show documentation
Show all versions of launchdarkly-java-server-sdk Show documentation
Official LaunchDarkly SDK for Java
package com.launchdarkly.sdk.server.interfaces;
import com.launchdarkly.sdk.server.Components;
/**
* Interface for a factory that creates some implementation of {@link DataStore}.
* @see Components
* @since 4.11.0
*/
public interface DataStoreFactory {
/**
* Creates an implementation instance.
*
* @param context allows access to the client configuration
* @param dataStoreUpdates the data store can use this object to report information back to
* the SDK if desired
* @return a {@link DataStore}
*/
DataStore createDataStore(ClientContext context, DataStoreUpdates dataStoreUpdates);
}