Class AbstractConsulClient
java.lang.Object
io.micronaut.discovery.consul.client.v1.AbstractConsulClient
- All Implemented Interfaces:
io.micronaut.core.naming.Described
,ConsulClient
,ConsulOperations
,io.micronaut.discovery.DiscoveryClient
,Closeable
,AutoCloseable
@Client(id="consul",
path="/v1",
configuration=ConsulConfiguration.class)
@Requires(beans=ConsulConfiguration.class)
public abstract class AbstractConsulClient
extends Object
implements ConsulClient
Abstract implementation of
ConsulClient
that also implements DiscoveryClient
.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface io.micronaut.discovery.consul.client.v1.ConsulClient
SERVICE_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<List<io.micronaut.discovery.ServiceInstance>>
getInstances
(String serviceId) void
setConsulConfiguration
(ConsulConfiguration consulConfiguration) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.discovery.consul.client.v1.ConsulOperations
deregister, deregister, deregister, fail, fail, findHealthyServices, findHealthyServices, findServices, getHealthyServices, getHealthyServices, getMembers, getNodes, getNodes, getSelf, getServiceNames, getServices, pass, pass, putValue, readValues, readValues, register, register, register, register, status, warn, warn
Methods inherited from interface io.micronaut.core.naming.Described
getDescription
-
Constructor Details
-
AbstractConsulClient
public AbstractConsulClient()
-
-
Method Details
-
setConsulConfiguration
- Parameters:
consulConfiguration
- The Consul configuration
-
getDescription
- Specified by:
getDescription
in interfaceio.micronaut.core.naming.Described
-
getServiceIds
- Specified by:
getServiceIds
in interfaceConsulClient
- Specified by:
getServiceIds
in interfaceio.micronaut.discovery.DiscoveryClient
-
getInstances
public org.reactivestreams.Publisher<List<io.micronaut.discovery.ServiceInstance>> getInstances(String serviceId) - Specified by:
getInstances
in interfaceio.micronaut.discovery.DiscoveryClient
-