com.launchdarkly.sdk.server.interfaces.PersistentDataStoreFactory 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.integrations.PersistentDataStoreBuilder;
/**
* Interface for a factory that creates some implementation of a persistent data store.
*
* This interface is implemented by database integrations. Usage is described in
* {@link com.launchdarkly.sdk.server.Components#persistentDataStore}.
*
* @see com.launchdarkly.sdk.server.Components
* @since 4.12.0
*/
public interface PersistentDataStoreFactory {
/**
* Called internally from {@link PersistentDataStoreBuilder} to create the implementation object
* for the specific type of data store.
*
* @param context allows access to the client configuration
* @return the implementation object
*/
PersistentDataStore createPersistentDataStore(ClientContext context);
}