Class 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)  
    • Constructor Detail

      • JerseySSEClient

        public JerseySSEClient​(io.featurehub.client.FeatureStore repository,
                               io.featurehub.client.FeatureHubConfig config,
                               io.featurehub.client.edge.EdgeRetryService retryer)
    • 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:
        contextChange in interface io.featurehub.client.EdgeService
      • isClientEvaluation

        public boolean isClientEvaluation()
        Specified by:
        isClientEvaluation in interface io.featurehub.client.EdgeService
      • close

        public void close()
        Specified by:
        close in interface io.featurehub.client.EdgeService
      • getConfig

        @NotNull
        public @NotNull io.featurehub.client.FeatureHubConfig getConfig()
        Specified by:
        getConfig in interface io.featurehub.client.EdgeService
      • isRequiresReplacementOnHeaderChange

        public boolean isRequiresReplacementOnHeaderChange()
        Specified by:
        isRequiresReplacementOnHeaderChange in interface io.featurehub.client.EdgeService
      • makeEventSource

        protected org.glassfish.jersey.media.sse.EventInput makeEventSource()
      • poll

        public void poll()
        Specified by:
        poll in interface io.featurehub.client.EdgeService
      • reconnect

        public void reconnect()
        Specified by:
        reconnect in interface io.featurehub.client.edge.EdgeReconnector