@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented @Import(value=ClusterAwareConfiguration.class) public @interface EnableClusterAware
EnableClusterAware annotation helps Spring Boot applications using Apache Geode decide whether it needs
to operate in local-only mode or in a client/server topology.Annotation,
Documented,
Inherited,
Retention,
Target,
ClientCache,
Import,
EnableClusterConfiguration| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
strictMatch
Determines whether the matching algorithm is strict.
|
public abstract boolean strictMatch
ClientCache application would connect to the cluster on deployment (push).
However, is entirely possible that users may push Spring Boot, Apache Geode ClientCache applications
to a cloud-managed environment where not cluster was provisioned and is available, and user simply want their
apps to run in local-only mode.
The strict match configuration setting absolutely requires that at least 1 connection must be established. Use
of this configuration setting also promotes a fail-fast protocol, or at least early detection (when log levels
are adjusted accordingly) that a cluster is not available.
Use spring.boot.data.gemfire.cluster.condition.match.strict
in Spring Boot application.properties.
Defaults to false.