Package io.harness.cf.client.connector
Interface Connector
-
- All Known Implementing Classes:
HarnessConnector,LocalConnector
public interface Connector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringauthenticate()voidclose()FeatureConfiggetFlag(@NonNull java.lang.String identifier)java.util.List<FeatureConfig>getFlags()SegmentgetSegment(@NonNull java.lang.String identifier)java.util.List<Segment>getSegments()voidpostMetrics(Metrics metrics)voidsetOnUnauthorized(java.lang.Runnable runnable)If the http interceptor detects unauthorised during an API call then this callback is used to retry authServicestream(Updater updater)
-
-
-
Method Detail
-
authenticate
java.lang.String authenticate() throws ConnectorException- Throws:
ConnectorException
-
setOnUnauthorized
void setOnUnauthorized(java.lang.Runnable runnable)
If the http interceptor detects unauthorised during an API call then this callback is used to retry auth
-
getFlags
java.util.List<FeatureConfig> getFlags() throws ConnectorException
- Throws:
ConnectorException
-
getFlag
FeatureConfig getFlag(@NonNull @NonNull java.lang.String identifier) throws ConnectorException
- Throws:
ConnectorException
-
getSegments
java.util.List<Segment> getSegments() throws ConnectorException
- Throws:
ConnectorException
-
getSegment
Segment getSegment(@NonNull @NonNull java.lang.String identifier) throws ConnectorException
- Throws:
ConnectorException
-
postMetrics
void postMetrics(Metrics metrics) throws ConnectorException
- Throws:
ConnectorException
-
stream
Service stream(Updater updater) throws ConnectorException
- Throws:
ConnectorException
-
close
void close()
-
-