io.harness.cf.client.connector.Connector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ff-java-server-sdk Show documentation
Show all versions of ff-java-server-sdk Show documentation
Harness Feature Flag Java Server SDK
The newest version!
package io.harness.cf.client.connector;
import io.harness.cf.model.FeatureConfig;
import io.harness.cf.model.Metrics;
import io.harness.cf.model.Segment;
import java.util.List;
import lombok.NonNull;
public interface Connector {
String authenticate() throws ConnectorException;
/**
* If the http interceptor detects unauthorised during an API call then this callback is used to
* retry auth
*/
void setOnUnauthorized(Runnable runnable);
List getFlags() throws ConnectorException;
FeatureConfig getFlag(@NonNull String identifier) throws ConnectorException;
List getSegments() throws ConnectorException;
Segment getSegment(@NonNull String identifier) throws ConnectorException;
void postMetrics(Metrics metrics) throws ConnectorException;
Service stream(Updater updater) throws ConnectorException;
void close();
boolean getShouldFlushAnalyticsOnClose();
void setIsShuttingDown();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy