io.featurehub.client.EdgeService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client-core Show documentation
Show all versions of java-client-core Show documentation
Shared core of featurehub client.
package io.featurehub.client;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.concurrent.Future;
public interface EdgeService {
/**
* called only when the new attribute header has changed
*
* @param newHeader - the header to pass to the server if server evaluated
* @return a completable future when it has actually changed
*/
@NotNull
Future contextChange(@Nullable String newHeader);
/**
* are we doing client side evaluation?
* @return
*/
boolean isClientEvaluation();
/**
* Shut down this service
*/
void close();
@NotNull
FeatureHubConfig getConfig();
boolean isRequiresReplacementOnHeaderChange();
void poll();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy