Package io.micronaut.coherence.discovery
Class CoherenceConfigurationClient
java.lang.Object
io.micronaut.coherence.discovery.CoherenceConfigurationClient
- All Implemented Interfaces:
io.micronaut.core.naming.Described
,io.micronaut.discovery.config.ConfigurationClient
@Singleton
@Requires(beans=CoherenceClientConfiguration.class)
public class CoherenceConfigurationClient
extends Object
implements io.micronaut.discovery.config.ConfigurationClient
A
ConfigurationClient
that works with Coherence as a config source.-
Field Summary
Fields inherited from interface io.micronaut.discovery.config.ConfigurationClient
CONFIGURATION_PREFIX, ENABLED, READ_TIMEOUT
-
Constructor Summary
ConstructorDescriptionCoherenceConfigurationClient
(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, CoherenceClientConfiguration coherenceClientConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected io.grpc.Channel
buildChannel
(CoherenceClientConfiguration coherenceClientConfiguration) Builds gRPC channel.protected com.tangosol.net.Session
buildSession
(CoherenceClientConfiguration coherenceClientConfiguration) Builds Coherence session.buildSourceNames
(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, io.micronaut.context.env.Environment environment) Build a map of config source names.org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource>
getPropertySources
(io.micronaut.context.env.Environment environment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.naming.Described
getDescription
-
Constructor Details
-
CoherenceConfigurationClient
public CoherenceConfigurationClient(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, CoherenceClientConfiguration coherenceClientConfiguration)
-
-
Method Details
-
getPropertySources
public org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource> getPropertySources(io.micronaut.context.env.Environment environment) - Specified by:
getPropertySources
in interfaceio.micronaut.discovery.config.ConfigurationClient
-
buildSourceNames
protected Map<Integer,String> buildSourceNames(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, io.micronaut.context.env.Environment environment) Build a map of config source names.- Parameters:
applicationConfiguration
- the application configurationenvironment
- the current environment- Returns:
- a map of config source names
-
buildSession
protected com.tangosol.net.Session buildSession(CoherenceClientConfiguration coherenceClientConfiguration) Builds Coherence session.- Parameters:
coherenceClientConfiguration
- configuration- Returns:
- Coherence session
-
buildChannel
Builds gRPC channel.- Parameters:
coherenceClientConfiguration
- configuration- Returns:
- gRPC channel
-
getDescription
- Specified by:
getDescription
in interfaceio.micronaut.core.naming.Described
-