Class CoherenceConfigClientProperties
java.lang.Object
com.oracle.coherence.spring.boot.config.CoherenceConfigClientProperties
@ConfigurationProperties("coherence.config-client")
@Validated
public class CoherenceConfigClientProperties
extends Object
Contains Spring Boot @
ConfigurationProperties
for retrieval of configuration properties stored in a remote
Coherence cluster.- Since:
- 3.0
- Author:
- Gunnar Hillert
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Coherence gRPC client configuration. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionName of the application used to fetch remote properties.Contains gRPC-specific configuration.The default profile to use when fetching remote configuration (comma-separated).Name of the Coherence scope used to fetch remote properties from.Name of the Coherence session used to fetch remote properties from.boolean
Returnstrue
if the facilities to retrieve remote Coherence configuration properties are enabled? Defaults totrue
if not set.boolean
Flag to indicate that failure to connect to the server is fatal (default false).void
setApplicationName
(String applicationName) void
void
setEnabled
(boolean enabled) void
setFailFast
(boolean failFast) void
setProfile
(String profile) void
setScopeName
(String scopeName) void
setSessionName
(String sessionName)
-
Field Details
-
PREFIX
Prefix for configuration properties.- See Also:
-
DEFAULT_PROFILE
Default profile value.- See Also:
-
-
Constructor Details
-
CoherenceConfigClientProperties
public CoherenceConfigClientProperties()
-
-
Method Details
-
getProfile
The default profile to use when fetching remote configuration (comma-separated). Default is "default".- Returns:
- the specified Spring profile
-
setProfile
-
isFailFast
public boolean isFailFast()Flag to indicate that failure to connect to the server is fatal (default false).- Returns:
- true if FailFast is enabled.
-
setFailFast
public void setFailFast(boolean failFast) -
isEnabled
public boolean isEnabled()Returnstrue
if the facilities to retrieve remote Coherence configuration properties are enabled? Defaults totrue
if not set.- Returns:
- true if the retrieval of remote Coherence configuration properties is enabled
-
setEnabled
public void setEnabled(boolean enabled) -
getClient
Contains gRPC-specific configuration.- Returns:
- the gRPC-specific configuration properties
-
setClient
-
getApplicationName
Name of the application used to fetch remote properties.- Returns:
- the name of the application to retrieve remote properties for
-
setApplicationName
-
getSessionName
Name of the Coherence session used to fetch remote properties from. If not set, the default session is used.- Returns:
- the name of the specified Coherence session
-
setSessionName
-
getScopeName
Name of the Coherence scope used to fetch remote properties from. If not set, the default scope is used.- Returns:
- the scope name if set
-
setScopeName
-