Package io.micronaut.coherence.discovery
Class CoherenceClientConfiguration
java.lang.Object
io.micronaut.coherence.discovery.CoherenceClientConfiguration
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
@ConfigurationProperties("coherence.configuration.client")
@Requires(property="coherence.configuration.client.enabled",
value="true",
defaultValue="false")
public class CoherenceClientConfiguration
extends Object
implements io.micronaut.core.util.Toggleable
The Coherence client configuration.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of thesessionused by this configuration client.booleanReturnstrueif distributed configuration is enabled.voidsetEnabled(boolean enabled) Enables distributed configuration.voidsetSession(String session) Set the name of thesessionused by this configuration client.toString()
-
Field Details
-
PREFIX
The Coherence configuration client property prefix.- See Also:
-
-
Constructor Details
-
CoherenceClientConfiguration
public CoherenceClientConfiguration()
-
-
Method Details
-
getSession
Return the name of thesessionused by this configuration client.- Returns:
- the name of the
sessionused by this configuration client
-
setSession
Set the name of thesessionused by this configuration client.- Parameters:
session- the name of thesession
-
isEnabled
public boolean isEnabled()Returnstrueif distributed configuration is enabled.- Specified by:
isEnabledin interfaceio.micronaut.core.util.Toggleable- Returns:
- Returns
trueif distributed configuration is enabled
-
setEnabled
public void setEnabled(boolean enabled) Enables distributed configuration.- Parameters:
enabled- Enable the distributed configuration
-
toString
-