Class CoherenceConfigClientProperties
- java.lang.Object
-
- com.oracle.coherence.spring.boot.config.CoherenceConfigClientProperties
-
@ConfigurationProperties("coherence.config-client") @Validated public class CoherenceConfigClientProperties extends ObjectContains Spring Boot @ConfigurationPropertiesfor retrieval of configuration properties stored in a remote Coherence cluster.- Since:
- 3.0
- Author:
- Gunnar Hillert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoherenceConfigClientProperties.GrpcClientPropertiesCoherence gRPC client configuration.
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_PROFILEDefault profile value.static StringPREFIXPrefix for configuration properties.
-
Constructor Summary
Constructors Constructor Description CoherenceConfigClientProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetApplicationName()Name of the application used to fetch remote properties.CoherenceConfigClientProperties.GrpcClientPropertiesgetClient()Contains gRPC-specific configuration.StringgetProfile()The default profile to use when fetching remote configuration (comma-separated).StringgetScopeName()Name of the Coherence scope used to fetch remote properties from.StringgetSessionName()Name of the Coherence session used to fetch remote properties from.booleanisEnabled()Returnstrueif the facilities to retrieve remote Coherence configuration properties are enabled? Defaults totrueif not set.booleanisFailFast()Flag to indicate that failure to connect to the server is fatal (default false).voidsetApplicationName(String applicationName)voidsetClient(CoherenceConfigClientProperties.GrpcClientProperties client)voidsetEnabled(boolean enabled)voidsetFailFast(boolean failFast)voidsetProfile(String profile)voidsetScopeName(String scopeName)voidsetSessionName(String sessionName)
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
Prefix for configuration properties.- See Also:
- Constant Field Values
-
DEFAULT_PROFILE
public static final String DEFAULT_PROFILE
Default profile value.- See Also:
- Constant Field Values
-
-
Method Detail
-
getProfile
public String getProfile()
The default profile to use when fetching remote configuration (comma-separated). Default is "default".- Returns:
- the specified Spring profile
-
setProfile
public void setProfile(String profile)
-
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()
Returnstrueif the facilities to retrieve remote Coherence configuration properties are enabled? Defaults totrueif not set.- Returns:
- true if the retrieval of remote Coherence configuration properties is enabled
-
setEnabled
public void setEnabled(boolean enabled)
-
getClient
public CoherenceConfigClientProperties.GrpcClientProperties getClient()
Contains gRPC-specific configuration.- Returns:
- the gRPC-specific configuration properties
-
setClient
public void setClient(CoherenceConfigClientProperties.GrpcClientProperties client)
-
getApplicationName
public String getApplicationName()
Name of the application used to fetch remote properties.- Returns:
- the name of the application to retrieve remote properties for
-
setApplicationName
public void setApplicationName(String applicationName)
-
getSessionName
public String 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
public void setSessionName(String sessionName)
-
getScopeName
public String 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
public void setScopeName(String scopeName)
-
-