Package io.featurehub.client.jersey
Class JerseySSEClient
- java.lang.Object
-
- io.featurehub.client.jersey.JerseySSEClient
-
- All Implemented Interfaces:
io.featurehub.client.edge.EdgeReconnector,io.featurehub.client.EdgeService
public class JerseySSEClient extends java.lang.Object implements io.featurehub.client.EdgeService, io.featurehub.client.edge.EdgeReconnector
-
-
Constructor Summary
Constructors Constructor Description JerseySSEClient(io.featurehub.client.FeatureStore repository, io.featurehub.client.FeatureHubConfig config, io.featurehub.client.edge.EdgeRetryService retryer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()@NotNull java.util.concurrent.Future<io.featurehub.client.Readyness>contextChange(@Nullable java.lang.String newHeader, @Nullable java.lang.String contextSha)@NotNull io.featurehub.client.FeatureHubConfiggetConfig()booleanisClientEvaluation()booleanisRequiresReplacementOnHeaderChange()protected org.glassfish.jersey.media.sse.EventInputmakeEventSource()protected jakarta.ws.rs.client.WebTargetmakeEventSourceTarget(jakarta.ws.rs.client.Client client, java.lang.String sdkUrl)voidpoll()voidreconnect()
-
-
-
Method Detail
-
makeEventSourceTarget
protected jakarta.ws.rs.client.WebTarget makeEventSourceTarget(jakarta.ws.rs.client.Client client, java.lang.String sdkUrl)
-
contextChange
@NotNull public @NotNull java.util.concurrent.Future<io.featurehub.client.Readyness> contextChange(@Nullable @Nullable java.lang.String newHeader, @Nullable @Nullable java.lang.String contextSha)- Specified by:
contextChangein interfaceio.featurehub.client.EdgeService
-
isClientEvaluation
public boolean isClientEvaluation()
- Specified by:
isClientEvaluationin interfaceio.featurehub.client.EdgeService
-
close
public void close()
- Specified by:
closein interfaceio.featurehub.client.EdgeService
-
getConfig
@NotNull public @NotNull io.featurehub.client.FeatureHubConfig getConfig()
- Specified by:
getConfigin interfaceio.featurehub.client.EdgeService
-
isRequiresReplacementOnHeaderChange
public boolean isRequiresReplacementOnHeaderChange()
- Specified by:
isRequiresReplacementOnHeaderChangein interfaceio.featurehub.client.EdgeService
-
makeEventSource
protected org.glassfish.jersey.media.sse.EventInput makeEventSource()
-
poll
public void poll()
- Specified by:
pollin interfaceio.featurehub.client.EdgeService
-
reconnect
public void reconnect()
- Specified by:
reconnectin interfaceio.featurehub.client.edge.EdgeReconnector
-
-