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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the name of thesession
used by this configuration client.boolean
Returnstrue
if distributed configuration is enabled.void
setEnabled
(boolean enabled) Enables distributed configuration.void
setSession
(String session) Set the name of thesession
used 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 thesession
used by this configuration client.- Returns:
- the name of the
session
used by this configuration client
-
setSession
Set the name of thesession
used by this configuration client.- Parameters:
session
- the name of thesession
-
isEnabled
public boolean isEnabled()Returnstrue
if distributed configuration is enabled.- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- Returns
true
if distributed configuration is enabled
-
setEnabled
public void setEnabled(boolean enabled) Enables distributed configuration.- Parameters:
enabled
- Enable the distributed configuration
-
toString
-