Class ConsulClient
- All Implemented Interfaces:
MutinyDelegate
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Ruslan Sennov
- See Also:
-
ConsulClient
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConsulClient(io.vertx.ext.consul.ConsulClient delegate) Create a new instance ofConsulClientdelegating to the given (non-null) instance ofConsulClient.ConsulClient(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<io.vertx.core.json.JsonObject>Returns the configuration and member information of the local agentio.vertx.core.json.JsonObjectReturns the configuration and member information of the local agentReturns the configuration and member information of the local agentReturn all the datacenters that are known by the Consul serverReturn all the datacenters that are known by the Consul serverReturn all the datacenters that are known by the Consul serverio.smallrye.mutiny.Uni<io.vertx.ext.consul.NodeList>Returns the nodes registered in a datacenterio.vertx.ext.consul.NodeListReturns the nodes registered in a datacenterReturns the nodes registered in a datacenterio.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceList>catalogNodeServices(String node) Returns the node's registered servicesio.vertx.ext.consul.ServiceListReturns the node's registered servicesReturns the node's registered servicesio.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceList>catalogNodeServicesWithOptions(String node, io.vertx.ext.consul.BlockingQueryOptions options) Returns the node's registered services This is blocking query unlikecatalogNodeServices(String)io.vertx.ext.consul.ServiceListcatalogNodeServicesWithOptionsAndAwait(String node, io.vertx.ext.consul.BlockingQueryOptions options) Returns the node's registered services This is blocking query unlikecatalogNodeServices(String)catalogNodeServicesWithOptionsAndForget(String node, io.vertx.ext.consul.BlockingQueryOptions options) Returns the node's registered services This is blocking query unlikecatalogNodeServices(String)io.smallrye.mutiny.Uni<io.vertx.ext.consul.NodeList>catalogNodesWithOptions(io.vertx.ext.consul.NodeQueryOptions options) Returns the nodes registered in a datacenterio.vertx.ext.consul.NodeListcatalogNodesWithOptionsAndAwait(io.vertx.ext.consul.NodeQueryOptions options) Returns the nodes registered in a datacentercatalogNodesWithOptionsAndForget(io.vertx.ext.consul.NodeQueryOptions options) Returns the nodes registered in a datacenterio.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceList>catalogServiceNodes(String service) Returns the nodes providing a serviceio.vertx.ext.consul.ServiceListcatalogServiceNodesAndAwait(String service) Returns the nodes providing a servicecatalogServiceNodesAndForget(String service) Returns the nodes providing a serviceio.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceList>catalogServiceNodesWithOptions(String service, io.vertx.ext.consul.ServiceQueryOptions options) Returns the nodes providing a serviceio.vertx.ext.consul.ServiceListcatalogServiceNodesWithOptionsAndAwait(String service, io.vertx.ext.consul.ServiceQueryOptions options) Returns the nodes providing a servicecatalogServiceNodesWithOptionsAndForget(String service, io.vertx.ext.consul.ServiceQueryOptions options) Returns the nodes providing a serviceio.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceList>Returns the services registered in a datacenterio.vertx.ext.consul.ServiceListReturns the services registered in a datacenterReturns the services registered in a datacenterio.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceList>catalogServicesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options) Returns the services registered in a datacenter This is blocking query unlikecatalogServices()io.vertx.ext.consul.ServiceListcatalogServicesWithOptionsAndAwait(io.vertx.ext.consul.BlockingQueryOptions options) Returns the services registered in a datacenter This is blocking query unlikecatalogServices()catalogServicesWithOptionsAndForget(io.vertx.ext.consul.BlockingQueryOptions options) Returns the services registered in a datacenter This is blocking query unlikecatalogServices()io.smallrye.mutiny.Uni<io.vertx.ext.consul.token.AclToken>cloneAclToken(String accessorId, io.vertx.ext.consul.token.CloneAclTokenOptions cloneAclTokenOptions) Clones an existing ACL tokenio.vertx.ext.consul.token.AclTokencloneAclTokenAndAwait(String accessorId, io.vertx.ext.consul.token.CloneAclTokenOptions cloneAclTokenOptions) Clones an existing ACL tokencloneAclTokenAndForget(String accessorId, io.vertx.ext.consul.token.CloneAclTokenOptions cloneAclTokenOptions) Clones an existing ACL tokenvoidclose()Close the client and release its resourcesio.smallrye.mutiny.Uni<List<io.vertx.ext.consul.DcCoordinates>>Returns the WAN network coordinates for all Consul servers, organized by DCsList<io.vertx.ext.consul.DcCoordinates>Returns the WAN network coordinates for all Consul servers, organized by DCsReturns the WAN network coordinates for all Consul servers, organized by DCsio.smallrye.mutiny.Uni<io.vertx.ext.consul.CoordinateList>Returns the LAN network coordinates for all nodes in a given DCio.vertx.ext.consul.CoordinateListReturns the LAN network coordinates for all nodes in a given DCReturns the LAN network coordinates for all nodes in a given DCio.smallrye.mutiny.Uni<io.vertx.ext.consul.CoordinateList>coordinateNodesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options) Returns the LAN network coordinates for all nodes in a given DC This is blocking query unlikecoordinateNodes()io.vertx.ext.consul.CoordinateListcoordinateNodesWithOptionsAndAwait(io.vertx.ext.consul.BlockingQueryOptions options) Returns the LAN network coordinates for all nodes in a given DC This is blocking query unlikecoordinateNodes()coordinateNodesWithOptionsAndForget(io.vertx.ext.consul.BlockingQueryOptions options) Returns the LAN network coordinates for all nodes in a given DC This is blocking query unlikecoordinateNodes()static ConsulClientCreate a Consul client with default options.static ConsulClientCreate a Consul client.io.smallrye.mutiny.Uni<String>createAclPolicy(io.vertx.ext.consul.policy.AclPolicy policy) Creates a new ACL policycreateAclPolicyAndAwait(io.vertx.ext.consul.policy.AclPolicy policy) Creates a new ACL policycreateAclPolicyAndForget(io.vertx.ext.consul.policy.AclPolicy policy) Creates a new ACL policyio.smallrye.mutiny.Uni<io.vertx.ext.consul.token.AclToken>createAclToken(io.vertx.ext.consul.token.AclToken token) Create an Acl tokenio.vertx.ext.consul.token.AclTokencreateAclTokenAndAwait(io.vertx.ext.consul.token.AclToken token) Create an Acl tokencreateAclTokenAndForget(io.vertx.ext.consul.token.AclToken token) Create an Acl tokenio.smallrye.mutiny.Uni<String>createPreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition) Unlike the bare Vert.x variant, this method returns aUni.createPreparedQueryAndAwait(io.vertx.ext.consul.PreparedQueryDefinition definition) Unlike the bare Vert.x variant, this method returns aString.createPreparedQueryAndForget(io.vertx.ext.consul.PreparedQueryDefinition definition) Unlike the bare Vert.x variant, this method ignores theStringresult or any failure.io.smallrye.mutiny.Uni<String>Initialize a new sessionInitialize a new sessionInitialize a new sessionio.smallrye.mutiny.Uni<String>createSessionWithOptions(io.vertx.ext.consul.SessionOptions options) Initialize a new sessioncreateSessionWithOptionsAndAwait(io.vertx.ext.consul.SessionOptions options) Initialize a new sessioncreateSessionWithOptionsAndForget(io.vertx.ext.consul.SessionOptions options) Initialize a new sessionio.smallrye.mutiny.Uni<Boolean>deleteAclToken(String accessorId) Deletes an ACL tokendeleteAclTokenAndAwait(String accessorId) Deletes an ACL tokendeleteAclTokenAndForget(String accessorId) Deletes an ACL tokenio.smallrye.mutiny.Uni<Boolean>deletePolicy(String id) This endpoint deletes an ACL policyThis endpoint deletes an ACL policyThis endpoint deletes an ACL policyio.smallrye.mutiny.Uni<Void>Deletes an existing prepared queryvoidDeletes an existing prepared queryDeletes an existing prepared queryio.smallrye.mutiny.Uni<Void>deleteValue(String key) Remove the key/value pair that corresponding to the specified keyvoidRemove the key/value pair that corresponding to the specified keyRemove the key/value pair that corresponding to the specified keyio.smallrye.mutiny.Uni<Void>deleteValues(String keyPrefix) Removes all the key/value pair that corresponding to the specified key prefixvoiddeleteValuesAndAwait(String keyPrefix) Removes all the key/value pair that corresponding to the specified key prefixdeleteValuesAndForget(String keyPrefix) Removes all the key/value pair that corresponding to the specified key prefixio.smallrye.mutiny.Uni<Void>deregisterCatalogService(String nodeId, String serviceId) Deregister entities from the node or deregister the node itself.voidderegisterCatalogServiceAndAwait(String nodeId, String serviceId) Deregister entities from the node or deregister the node itself.deregisterCatalogServiceAndForget(String nodeId, String serviceId) Deregister entities from the node or deregister the node itself.io.smallrye.mutiny.Uni<Void>deregisterCheck(String checkId) Remove a check from the local agent.voidderegisterCheckAndAwait(String checkId) Remove a check from the local agent.deregisterCheckAndForget(String checkId) Remove a check from the local agent.io.smallrye.mutiny.Uni<Void>Remove a service from the local agent.voidRemove a service from the local agent.Remove a service from the local agent.io.smallrye.mutiny.Uni<Void>destroySession(String id) Destroys the given sessionvoidDestroys the given sessionDestroys the given sessionbooleanio.smallrye.mutiny.Uni<io.vertx.ext.consul.PreparedQueryExecuteResponse>executePreparedQuery(String query) Executes an existing prepared query.io.vertx.ext.consul.PreparedQueryExecuteResponseExecutes an existing prepared query.Executes an existing prepared query.io.smallrye.mutiny.Uni<io.vertx.ext.consul.PreparedQueryExecuteResponse>executePreparedQueryWithOptions(String query, io.vertx.ext.consul.PreparedQueryExecuteOptions options) Executes an existing prepared query.io.vertx.ext.consul.PreparedQueryExecuteResponseexecutePreparedQueryWithOptionsAndAwait(String query, io.vertx.ext.consul.PreparedQueryExecuteOptions options) Executes an existing prepared query.executePreparedQueryWithOptionsAndForget(String query, io.vertx.ext.consul.PreparedQueryExecuteOptions options) Executes an existing prepared query.io.smallrye.mutiny.Uni<Void>Set status of the check to "critical".voidfailCheckAndAwait(String checkId) Set status of the check to "critical".failCheckAndForget(String checkId) Set status of the check to "critical".io.smallrye.mutiny.Uni<Void>failCheckWithNote(String checkId, String note) Set status of the check to "critical".voidfailCheckWithNoteAndAwait(String checkId, String note) Set status of the check to "critical".failCheckWithNoteAndForget(String checkId, String note) Set status of the check to "critical".io.smallrye.mutiny.Uni<io.vertx.ext.consul.Event>Fires a new user eventio.vertx.ext.consul.EventfireEventAndAwait(String name) Fires a new user eventfireEventAndForget(String name) Fires a new user eventio.smallrye.mutiny.Uni<io.vertx.ext.consul.Event>fireEventWithOptions(String name, io.vertx.ext.consul.EventOptions options) Fires a new user eventio.vertx.ext.consul.EventfireEventWithOptionsAndAwait(String name, io.vertx.ext.consul.EventOptions options) Fires a new user eventfireEventWithOptionsAndForget(String name, io.vertx.ext.consul.EventOptions options) Fires a new user eventio.smallrye.mutiny.Uni<List<io.vertx.ext.consul.policy.AclPolicy>>This endpoint lists all the ACL policies.List<io.vertx.ext.consul.policy.AclPolicy>This endpoint lists all the ACL policies.This endpoint lists all the ACL policies.io.smallrye.mutiny.Uni<List<io.vertx.ext.consul.token.AclToken>>Get list of Acl tokenList<io.vertx.ext.consul.token.AclToken>Get list of Acl tokenGet list of Acl tokenio.smallrye.mutiny.Uni<List<io.vertx.ext.consul.PreparedQueryDefinition>>Returns a list of all prepared queries.List<io.vertx.ext.consul.PreparedQueryDefinition>Returns a list of all prepared queries.Returns a list of all prepared queries.io.vertx.ext.consul.ConsulClientGet the delegate instance.Returns the list of keys that corresponding to the specified key prefix.getKeysAndAwait(String keyPrefix) Returns the list of keys that corresponding to the specified key prefix.getKeysAndForget(String keyPrefix) Returns the list of keys that corresponding to the specified key prefix.getKeysWithOptions(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options) Returns the list of keys that corresponding to the specified key prefix.getKeysWithOptionsAndAwait(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options) Returns the list of keys that corresponding to the specified key prefix.getKeysWithOptionsAndForget(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options) Returns the list of keys that corresponding to the specified key prefix.io.smallrye.mutiny.Uni<io.vertx.ext.consul.PreparedQueryDefinition>Returns an existing prepared queryio.vertx.ext.consul.PreparedQueryDefinitionReturns an existing prepared queryReturns an existing prepared queryio.smallrye.mutiny.Uni<io.vertx.ext.consul.KeyValue>Returns key/value pair that corresponding to the specified key.io.vertx.ext.consul.KeyValuegetValueAndAwait(String key) Returns key/value pair that corresponding to the specified key.getValueAndForget(String key) Returns key/value pair that corresponding to the specified key.io.smallrye.mutiny.Uni<io.vertx.ext.consul.KeyValueList>Returns the list of key/value pairs that corresponding to the specified key prefix.io.vertx.ext.consul.KeyValueListgetValuesAndAwait(String keyPrefix) Returns the list of key/value pairs that corresponding to the specified key prefix.getValuesAndForget(String keyPrefix) Returns the list of key/value pairs that corresponding to the specified key prefix.io.smallrye.mutiny.Uni<io.vertx.ext.consul.KeyValueList>getValuesWithOptions(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options) Returns the list of key/value pairs that corresponding to the specified key prefix.io.vertx.ext.consul.KeyValueListgetValuesWithOptionsAndAwait(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options) Returns the list of key/value pairs that corresponding to the specified key prefix.getValuesWithOptionsAndForget(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options) Returns the list of key/value pairs that corresponding to the specified key prefix.io.smallrye.mutiny.Uni<io.vertx.ext.consul.KeyValue>getValueWithOptions(String key, io.vertx.ext.consul.BlockingQueryOptions options) Returns key/value pair that corresponding to the specified key.io.vertx.ext.consul.KeyValuegetValueWithOptionsAndAwait(String key, io.vertx.ext.consul.BlockingQueryOptions options) Returns key/value pair that corresponding to the specified key.getValueWithOptionsAndForget(String key, io.vertx.ext.consul.BlockingQueryOptions options) Returns key/value pair that corresponding to the specified key.inthashCode()io.smallrye.mutiny.Uni<io.vertx.ext.consul.CheckList>healthChecks(String service) Returns the checks associated with the serviceio.vertx.ext.consul.CheckListhealthChecksAndAwait(String service) Returns the checks associated with the servicehealthChecksAndForget(String service) Returns the checks associated with the serviceio.smallrye.mutiny.Uni<io.vertx.ext.consul.CheckList>healthChecksWithOptions(String service, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks associated with the serviceio.vertx.ext.consul.CheckListhealthChecksWithOptionsAndAwait(String service, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks associated with the servicehealthChecksWithOptionsAndForget(String service, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks associated with the serviceio.smallrye.mutiny.Uni<io.vertx.ext.consul.CheckList>healthNodesWithOptions(String node, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks specific to the node provided on the path.io.vertx.ext.consul.CheckListhealthNodesWithOptionsAndAwait(String node, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks specific to the node provided on the path.healthNodesWithOptionsAndForget(String node, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks specific to the node provided on the path.io.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceEntryList>healthServiceNodes(String service, boolean passing) Returns the nodes providing the service.io.vertx.ext.consul.ServiceEntryListhealthServiceNodesAndAwait(String service, boolean passing) Returns the nodes providing the service.healthServiceNodesAndForget(String service, boolean passing) Returns the nodes providing the service.io.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceEntryList>healthServiceNodesWithOptions(String service, boolean passing, io.vertx.ext.consul.ServiceQueryOptions options) Returns the nodes providing the service.io.vertx.ext.consul.ServiceEntryListhealthServiceNodesWithOptionsAndAwait(String service, boolean passing, io.vertx.ext.consul.ServiceQueryOptions options) Returns the nodes providing the service.healthServiceNodesWithOptionsAndForget(String service, boolean passing, io.vertx.ext.consul.ServiceQueryOptions options) Returns the nodes providing the service.io.smallrye.mutiny.Uni<io.vertx.ext.consul.CheckList>healthState(io.vertx.ext.consul.HealthState healthState) Returns the checks in the specified statusio.vertx.ext.consul.CheckListhealthStateAndAwait(io.vertx.ext.consul.HealthState healthState) Returns the checks in the specified statushealthStateAndForget(io.vertx.ext.consul.HealthState healthState) Returns the checks in the specified statusio.smallrye.mutiny.Uni<io.vertx.ext.consul.CheckList>healthStateWithOptions(io.vertx.ext.consul.HealthState healthState, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks in the specified statusio.vertx.ext.consul.CheckListhealthStateWithOptionsAndAwait(io.vertx.ext.consul.HealthState healthState, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks in the specified statushealthStateWithOptionsAndForget(io.vertx.ext.consul.HealthState healthState, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks in the specified statusio.smallrye.mutiny.Uni<io.vertx.ext.consul.Session>infoSession(String id) Returns the requested session informationio.vertx.ext.consul.SessionReturns the requested session informationReturns the requested session informationio.smallrye.mutiny.Uni<io.vertx.ext.consul.Session>infoSessionWithOptions(String id, io.vertx.ext.consul.BlockingQueryOptions options) Returns the requested session information This is blocking query unlikeinfoSession(String)io.vertx.ext.consul.SessioninfoSessionWithOptionsAndAwait(String id, io.vertx.ext.consul.BlockingQueryOptions options) Returns the requested session information This is blocking query unlikeinfoSession(String)infoSessionWithOptionsAndForget(String id, io.vertx.ext.consul.BlockingQueryOptions options) Returns the requested session information This is blocking query unlikeinfoSession(String)io.smallrye.mutiny.Uni<String>Get the Raft leader for the datacenter in which the agent is running.Get the Raft leader for the datacenter in which the agent is running.Get the Raft leader for the datacenter in which the agent is running.io.smallrye.mutiny.Uni<io.vertx.ext.consul.EventList>Returns the most recent events known by the agentio.vertx.ext.consul.EventListReturns the most recent events known by the agentReturns the most recent events known by the agentio.smallrye.mutiny.Uni<io.vertx.ext.consul.EventList>listEventsWithOptions(io.vertx.ext.consul.EventListOptions options) Returns the most recent events known by the agent.io.vertx.ext.consul.EventListlistEventsWithOptionsAndAwait(io.vertx.ext.consul.EventListOptions options) Returns the most recent events known by the agent.listEventsWithOptionsAndForget(io.vertx.ext.consul.EventListOptions options) Returns the most recent events known by the agent.io.smallrye.mutiny.Uni<io.vertx.ext.consul.SessionList>listNodeSessions(String nodeId) Returns the active sessions for a given nodeio.vertx.ext.consul.SessionListlistNodeSessionsAndAwait(String nodeId) Returns the active sessions for a given nodelistNodeSessionsAndForget(String nodeId) Returns the active sessions for a given nodeio.smallrye.mutiny.Uni<io.vertx.ext.consul.SessionList>listNodeSessionsWithOptions(String nodeId, io.vertx.ext.consul.BlockingQueryOptions options) Returns the active sessions for a given node This is blocking query unlikelistNodeSessions(String)io.vertx.ext.consul.SessionListlistNodeSessionsWithOptionsAndAwait(String nodeId, io.vertx.ext.consul.BlockingQueryOptions options) Returns the active sessions for a given node This is blocking query unlikelistNodeSessions(String)listNodeSessionsWithOptionsAndForget(String nodeId, io.vertx.ext.consul.BlockingQueryOptions options) Returns the active sessions for a given node This is blocking query unlikelistNodeSessions(String)io.smallrye.mutiny.Uni<io.vertx.ext.consul.SessionList>Returns the active sessionsio.vertx.ext.consul.SessionListReturns the active sessionsReturns the active sessionsio.smallrye.mutiny.Uni<io.vertx.ext.consul.SessionList>listSessionsWithOptions(io.vertx.ext.consul.BlockingQueryOptions options) Returns the active sessions This is blocking query unlikelistSessions()io.vertx.ext.consul.SessionListlistSessionsWithOptionsAndAwait(io.vertx.ext.consul.BlockingQueryOptions options) Returns the active sessions This is blocking query unlikelistSessions()listSessionsWithOptionsAndForget(io.vertx.ext.consul.BlockingQueryOptions options) Returns the active sessions This is blocking query unlikelistSessions()io.smallrye.mutiny.Uni<List<io.vertx.ext.consul.Check>>Return all the checks that are registered with the local agent.List<io.vertx.ext.consul.Check>Return all the checks that are registered with the local agent.Return all the checks that are registered with the local agent.io.smallrye.mutiny.Uni<List<io.vertx.ext.consul.Service>>Returns list of services registered with the local agent.List<io.vertx.ext.consul.Service>Returns list of services registered with the local agent.Returns list of services registered with the local agent.io.smallrye.mutiny.Uni<Void>maintenanceService(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions) Places a given service into "maintenance mode"voidmaintenanceServiceAndAwait(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions) Places a given service into "maintenance mode"maintenanceServiceAndForget(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions) Places a given service into "maintenance mode"static ConsulClientnewInstance(io.vertx.ext.consul.ConsulClient delegate) Creates a new instance of theConsulClient.io.smallrye.mutiny.Uni<Void>Set status of the check to "passing".voidpassCheckAndAwait(String checkId) Set status of the check to "passing".passCheckAndForget(String checkId) Set status of the check to "passing".io.smallrye.mutiny.Uni<Void>passCheckWithNote(String checkId, String note) Set status of the check to "passing".voidpassCheckWithNoteAndAwait(String checkId, String note) Set status of the check to "passing".passCheckWithNoteAndForget(String checkId, String note) Set status of the check to "passing".Retrieves the Raft peers for the datacenter in which the the agent is running.Retrieves the Raft peers for the datacenter in which the the agent is running.Retrieves the Raft peers for the datacenter in which the the agent is running.io.smallrye.mutiny.Uni<Boolean>Adds specified key/value pairputValueAndAwait(String key, String value) Adds specified key/value pairputValueAndForget(String key, String value) Adds specified key/value pairio.smallrye.mutiny.Uni<Boolean>putValueWithOptions(String key, String value, io.vertx.ext.consul.KeyValueOptions options) Unlike the bare Vert.x variant, this method returns aUni.putValueWithOptionsAndAwait(String key, String value, io.vertx.ext.consul.KeyValueOptions options) Unlike the bare Vert.x variant, this method returns aBoolean.putValueWithOptionsAndForget(String key, String value, io.vertx.ext.consul.KeyValueOptions options) Unlike the bare Vert.x variant, this method ignores theBooleanresult or any failure.io.smallrye.mutiny.Uni<io.vertx.ext.consul.token.AclToken>readAclToken(String accessorId) Reads an ACL token with the given Accessor IDio.vertx.ext.consul.token.AclTokenreadAclTokenAndAwait(String accessorId) Reads an ACL token with the given Accessor IDreadAclTokenAndForget(String accessorId) Reads an ACL token with the given Accessor IDio.smallrye.mutiny.Uni<io.vertx.ext.consul.policy.AclPolicy>readPolicy(String id) Unlike the bare Vert.x variant, this method returns aUni.io.vertx.ext.consul.policy.AclPolicyUnlike the bare Vert.x variant, this method returns aAclPolicy.Unlike the bare Vert.x variant, this method ignores theAclPolicyresult or any failure.io.smallrye.mutiny.Uni<io.vertx.ext.consul.policy.AclPolicy>readPolicyByName(String name) This endpoint reads an ACL policy with the given nameio.vertx.ext.consul.policy.AclPolicyThis endpoint reads an ACL policy with the given nameThis endpoint reads an ACL policy with the given nameio.smallrye.mutiny.Uni<Void>registerCatalogService(io.vertx.ext.consul.Node nodeOptions, io.vertx.ext.consul.ServiceOptions serviceOptions) Register node with external servicevoidregisterCatalogServiceAndAwait(io.vertx.ext.consul.Node nodeOptions, io.vertx.ext.consul.ServiceOptions serviceOptions) Register node with external serviceregisterCatalogServiceAndForget(io.vertx.ext.consul.Node nodeOptions, io.vertx.ext.consul.ServiceOptions serviceOptions) Register node with external serviceio.smallrye.mutiny.Uni<Void>registerCheck(io.vertx.ext.consul.CheckOptions checkOptions) Add a new check to the local agent.voidregisterCheckAndAwait(io.vertx.ext.consul.CheckOptions checkOptions) Add a new check to the local agent.registerCheckAndForget(io.vertx.ext.consul.CheckOptions checkOptions) Add a new check to the local agent.io.smallrye.mutiny.Uni<Void>registerService(io.vertx.ext.consul.ServiceOptions serviceOptions) Adds a new service, with an optional health check, to the local agent.voidregisterServiceAndAwait(io.vertx.ext.consul.ServiceOptions serviceOptions) Adds a new service, with an optional health check, to the local agent.registerServiceAndForget(io.vertx.ext.consul.ServiceOptions serviceOptions) Adds a new service, with an optional health check, to the local agent.io.smallrye.mutiny.Uni<io.vertx.ext.consul.Session>renewSession(String id) Renews the given session.io.vertx.ext.consul.SessionRenews the given session.Renews the given session.toString()io.smallrye.mutiny.Uni<io.vertx.ext.consul.TxnResponse>transaction(io.vertx.ext.consul.TxnRequest request) Manages multiple operations inside a single, atomic transaction.io.vertx.ext.consul.TxnResponsetransactionAndAwait(io.vertx.ext.consul.TxnRequest request) Manages multiple operations inside a single, atomic transaction.transactionAndForget(io.vertx.ext.consul.TxnRequest request) Manages multiple operations inside a single, atomic transaction.io.smallrye.mutiny.Uni<io.vertx.ext.consul.token.AclToken>updateAclToken(String accessorId, io.vertx.ext.consul.token.AclToken token) Update an existing Acl tokenio.vertx.ext.consul.token.AclTokenupdateAclTokenAndAwait(String accessorId, io.vertx.ext.consul.token.AclToken token) Update an existing Acl tokenupdateAclTokenAndForget(String accessorId, io.vertx.ext.consul.token.AclToken token) Update an existing Acl tokenio.smallrye.mutiny.Uni<Void>updateCheck(String checkId, io.vertx.ext.consul.CheckStatus status) Set status of the check to given status.voidupdateCheckAndAwait(String checkId, io.vertx.ext.consul.CheckStatus status) Set status of the check to given status.updateCheckAndForget(String checkId, io.vertx.ext.consul.CheckStatus status) Set status of the check to given status.io.smallrye.mutiny.Uni<Void>updateCheckWithNote(String checkId, io.vertx.ext.consul.CheckStatus status, String note) Set status of the check to given status.voidupdateCheckWithNoteAndAwait(String checkId, io.vertx.ext.consul.CheckStatus status, String note) Set status of the check to given status.updateCheckWithNoteAndForget(String checkId, io.vertx.ext.consul.CheckStatus status, String note) Set status of the check to given status.io.smallrye.mutiny.Uni<io.vertx.ext.consul.policy.AclPolicy>updatePolicy(String id, io.vertx.ext.consul.policy.AclPolicy policy) This endpoint updates an existing ACL policyio.vertx.ext.consul.policy.AclPolicyupdatePolicyAndAwait(String id, io.vertx.ext.consul.policy.AclPolicy policy) This endpoint updates an existing ACL policyupdatePolicyAndForget(String id, io.vertx.ext.consul.policy.AclPolicy policy) This endpoint updates an existing ACL policyio.smallrye.mutiny.Uni<Void>updatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition) Unlike the bare Vert.x variant, this method returns aUni.voidupdatePreparedQueryAndAwait(io.vertx.ext.consul.PreparedQueryDefinition definition) Unlike the bare Vert.x variant, this method returns aVoid.updatePreparedQueryAndForget(io.vertx.ext.consul.PreparedQueryDefinition definition) Unlike the bare Vert.x variant, this method ignores theVoidresult or any failure.io.smallrye.mutiny.Uni<Void>Set status of the check to "warning".voidwarnCheckAndAwait(String checkId) Set status of the check to "warning".warnCheckAndForget(String checkId) Set status of the check to "warning".io.smallrye.mutiny.Uni<Void>warnCheckWithNote(String checkId, String note) Set status of the check to "warning".voidwarnCheckWithNoteAndAwait(String checkId, String note) Set status of the check to "warning".warnCheckWithNoteAndForget(String checkId, String note) Set status of the check to "warning".
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ConsulClient
public ConsulClient(io.vertx.ext.consul.ConsulClient delegate) Create a new instance ofConsulClientdelegating to the given (non-null) instance ofConsulClient. -
ConsulClient
-
-
Method Details
-
getDelegate
public io.vertx.ext.consul.ConsulClient getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
agentInfo
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.core.json.JsonObject> agentInfo()Returns the configuration and member information of the local agentUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/self endpoint
ConsulClient.agentInfo()
-
agentInfoAndAwait
public io.vertx.core.json.JsonObject agentInfoAndAwait()Returns the configuration and member information of the local agentUnlike the bare Vert.x variant, this method returns a
JsonObject. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/agent/self endpoint
ConsulClient.agentInfo()
-
agentInfoAndForget
Returns the configuration and member information of the local agentUnlike the bare Vert.x variant, this method ignores the
JsonObjectresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/self endpoint
ConsulClient.agentInfo()
-
coordinateNodes
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.CoordinateList> coordinateNodes()Returns the LAN network coordinates for all nodes in a given DCUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/coordinate/nodes endpoint
ConsulClient.coordinateNodes()
-
coordinateNodesAndAwait
public io.vertx.ext.consul.CoordinateList coordinateNodesAndAwait()Returns the LAN network coordinates for all nodes in a given DCUnlike the bare Vert.x variant, this method returns a
CoordinateList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/coordinate/nodes endpoint
ConsulClient.coordinateNodes()
-
coordinateNodesAndForget
Returns the LAN network coordinates for all nodes in a given DCUnlike the bare Vert.x variant, this method ignores the
CoordinateListresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/coordinate/nodes endpoint
ConsulClient.coordinateNodes()
-
coordinateNodesWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.CoordinateList> coordinateNodesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options) Returns the LAN network coordinates for all nodes in a given DC This is blocking query unlikecoordinateNodes()Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
options- the blocking options- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/coordinate/nodes endpoint
ConsulClient.coordinateNodesWithOptions(BlockingQueryOptions)
-
coordinateNodesWithOptionsAndAwait
public io.vertx.ext.consul.CoordinateList coordinateNodesWithOptionsAndAwait(io.vertx.ext.consul.BlockingQueryOptions options) Returns the LAN network coordinates for all nodes in a given DC This is blocking query unlikecoordinateNodes()Unlike the bare Vert.x variant, this method returns a
CoordinateList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
options- the blocking options- Returns:
- The operation result
- See Also:
-
- /v1/coordinate/nodes endpoint
ConsulClient.coordinateNodesWithOptions(BlockingQueryOptions)
-
coordinateNodesWithOptionsAndForget
public ConsulClient coordinateNodesWithOptionsAndForget(io.vertx.ext.consul.BlockingQueryOptions options) Returns the LAN network coordinates for all nodes in a given DC This is blocking query unlikecoordinateNodes()Unlike the bare Vert.x variant, this method ignores the
CoordinateListresult or any failure.- Parameters:
options- the blocking options- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/coordinate/nodes endpoint
ConsulClient.coordinateNodesWithOptions(BlockingQueryOptions)
-
coordinateDatacenters
@CheckReturnValue public io.smallrye.mutiny.Uni<List<io.vertx.ext.consul.DcCoordinates>> coordinateDatacenters()Returns the WAN network coordinates for all Consul servers, organized by DCsUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/coordinate/datacenters endpoint
ConsulClient.coordinateDatacenters()
-
coordinateDatacentersAndAwait
Returns the WAN network coordinates for all Consul servers, organized by DCsUnlike the bare Vert.x variant, this method returns a
List<io.vertx.ext.consul.DcCoordinates>. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/coordinate/datacenters endpoint
ConsulClient.coordinateDatacenters()
-
coordinateDatacentersAndForget
Returns the WAN network coordinates for all Consul servers, organized by DCsUnlike the bare Vert.x variant, this method ignores the
List<io.vertx.ext.consul.DcCoordinates>result or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/coordinate/datacenters endpoint
ConsulClient.coordinateDatacenters()
-
getKeys
Returns the list of keys that corresponding to the specified key prefix.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
keyPrefix- the prefix- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getKeys(String)
-
getKeysAndAwait
Returns the list of keys that corresponding to the specified key prefix.Unlike the bare Vert.x variant, this method returns a
List<String>. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
keyPrefix- the prefix- Returns:
- The operation result
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getKeys(String)
-
getKeysAndForget
Returns the list of keys that corresponding to the specified key prefix.Unlike the bare Vert.x variant, this method ignores the
List<String>result or any failure.- Parameters:
keyPrefix- the prefix- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getKeys(String)
-
getKeysWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<List<String>> getKeysWithOptions(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options) Returns the list of keys that corresponding to the specified key prefix.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
keyPrefix- the prefixoptions- the blocking options- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getKeysWithOptions(String, BlockingQueryOptions)
-
getKeysWithOptionsAndAwait
public List<String> getKeysWithOptionsAndAwait(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options) Returns the list of keys that corresponding to the specified key prefix.Unlike the bare Vert.x variant, this method returns a
List<String>. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
keyPrefix- the prefixoptions- the blocking options- Returns:
- The operation result
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getKeysWithOptions(String, BlockingQueryOptions)
-
getKeysWithOptionsAndForget
public ConsulClient getKeysWithOptionsAndForget(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options) Returns the list of keys that corresponding to the specified key prefix.Unlike the bare Vert.x variant, this method ignores the
List<String>result or any failure.- Parameters:
keyPrefix- the prefixoptions- the blocking options- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getKeysWithOptions(String, BlockingQueryOptions)
-
getValue
Returns key/value pair that corresponding to the specified key. An emptyKeyValueobject will be returned if no such key is found.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
key- the key- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getValue(String)
-
getValueAndAwait
Returns key/value pair that corresponding to the specified key. An emptyKeyValueobject will be returned if no such key is found.Unlike the bare Vert.x variant, this method returns a
KeyValue. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
key- the key- Returns:
- The operation result
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getValue(String)
-
getValueAndForget
Returns key/value pair that corresponding to the specified key. An emptyKeyValueobject will be returned if no such key is found.Unlike the bare Vert.x variant, this method ignores the
KeyValueresult or any failure.- Parameters:
key- the key- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getValue(String)
-
getValueWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.KeyValue> getValueWithOptions(String key, io.vertx.ext.consul.BlockingQueryOptions options) Returns key/value pair that corresponding to the specified key. An emptyKeyValueobject will be returned if no such key is found. This is blocking query unlikegetValue(String)Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
key- the keyoptions- the blocking options- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getValueWithOptions(String, BlockingQueryOptions)
-
getValueWithOptionsAndAwait
public io.vertx.ext.consul.KeyValue getValueWithOptionsAndAwait(String key, io.vertx.ext.consul.BlockingQueryOptions options) Returns key/value pair that corresponding to the specified key. An emptyKeyValueobject will be returned if no such key is found. This is blocking query unlikegetValue(String)Unlike the bare Vert.x variant, this method returns a
KeyValue. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
key- the keyoptions- the blocking options- Returns:
- The operation result
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getValueWithOptions(String, BlockingQueryOptions)
-
getValueWithOptionsAndForget
public ConsulClient getValueWithOptionsAndForget(String key, io.vertx.ext.consul.BlockingQueryOptions options) Returns key/value pair that corresponding to the specified key. An emptyKeyValueobject will be returned if no such key is found. This is blocking query unlikegetValue(String)Unlike the bare Vert.x variant, this method ignores the
KeyValueresult or any failure.- Parameters:
key- the keyoptions- the blocking options- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getValueWithOptions(String, BlockingQueryOptions)
-
deleteValue
Remove the key/value pair that corresponding to the specified keyUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
key- the key- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/kv/:key endpoint
ConsulClient.deleteValue(String)
-
deleteValueAndAwait
Remove the key/value pair that corresponding to the specified keyUnlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
key- the key- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.deleteValue(String)
-
deleteValueAndForget
Remove the key/value pair that corresponding to the specified keyUnlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
key- the key- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.deleteValue(String)
-
getValues
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.KeyValueList> getValues(String keyPrefix) Returns the list of key/value pairs that corresponding to the specified key prefix. An emptyKeyValueListobject will be returned if no such key prefix is found.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
keyPrefix- the prefix- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getValues(String)
-
getValuesAndAwait
Returns the list of key/value pairs that corresponding to the specified key prefix. An emptyKeyValueListobject will be returned if no such key prefix is found.Unlike the bare Vert.x variant, this method returns a
KeyValueList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
keyPrefix- the prefix- Returns:
- The operation result
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getValues(String)
-
getValuesAndForget
Returns the list of key/value pairs that corresponding to the specified key prefix. An emptyKeyValueListobject will be returned if no such key prefix is found.Unlike the bare Vert.x variant, this method ignores the
KeyValueListresult or any failure.- Parameters:
keyPrefix- the prefix- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getValues(String)
-
getValuesWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.KeyValueList> getValuesWithOptions(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options) Returns the list of key/value pairs that corresponding to the specified key prefix. An emptyKeyValueListobject will be returned if no such key prefix is found. This is blocking query unlikegetValues(String)Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
keyPrefix- the prefixoptions- the blocking options- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getValuesWithOptions(String, BlockingQueryOptions)
-
getValuesWithOptionsAndAwait
public io.vertx.ext.consul.KeyValueList getValuesWithOptionsAndAwait(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options) Returns the list of key/value pairs that corresponding to the specified key prefix. An emptyKeyValueListobject will be returned if no such key prefix is found. This is blocking query unlikegetValues(String)Unlike the bare Vert.x variant, this method returns a
KeyValueList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
keyPrefix- the prefixoptions- the blocking options- Returns:
- The operation result
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getValuesWithOptions(String, BlockingQueryOptions)
-
getValuesWithOptionsAndForget
public ConsulClient getValuesWithOptionsAndForget(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options) Returns the list of key/value pairs that corresponding to the specified key prefix. An emptyKeyValueListobject will be returned if no such key prefix is found. This is blocking query unlikegetValues(String)Unlike the bare Vert.x variant, this method ignores the
KeyValueListresult or any failure.- Parameters:
keyPrefix- the prefixoptions- the blocking options- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.getValuesWithOptions(String, BlockingQueryOptions)
-
deleteValues
Removes all the key/value pair that corresponding to the specified key prefixUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
keyPrefix- the prefix- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/kv/:key endpoint
ConsulClient.deleteValues(String)
-
deleteValuesAndAwait
Removes all the key/value pair that corresponding to the specified key prefixUnlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
keyPrefix- the prefix- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.deleteValues(String)
-
deleteValuesAndForget
Removes all the key/value pair that corresponding to the specified key prefixUnlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
keyPrefix- the prefix- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.deleteValues(String)
-
putValue
Adds specified key/value pairUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
key- the keyvalue- the value- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/kv/:key endpoint
ConsulClient.putValue(String, String)
-
putValueAndAwait
Adds specified key/value pairUnlike the bare Vert.x variant, this method returns a
Boolean. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
key- the keyvalue- the value- Returns:
- The operation result
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.putValue(String, String)
-
putValueAndForget
Adds specified key/value pairUnlike the bare Vert.x variant, this method ignores the
Booleanresult or any failure.- Parameters:
key- the keyvalue- the value- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.putValue(String, String)
-
putValueWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<Boolean> putValueWithOptions(String key, String value, io.vertx.ext.consul.KeyValueOptions options) Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
key- the keyvalue- the valueoptions- options used to push pair- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/kv/:key endpoint
ConsulClient.putValueWithOptions(String, String, KeyValueOptions)
-
putValueWithOptionsAndAwait
public Boolean putValueWithOptionsAndAwait(String key, String value, io.vertx.ext.consul.KeyValueOptions options) Unlike the bare Vert.x variant, this method returns a
Boolean. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
key- the keyvalue- the valueoptions- options used to push pair- Returns:
- The operation result
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.putValueWithOptions(String, String, KeyValueOptions)
-
putValueWithOptionsAndForget
public ConsulClient putValueWithOptionsAndForget(String key, String value, io.vertx.ext.consul.KeyValueOptions options) Unlike the bare Vert.x variant, this method ignores the
Booleanresult or any failure.- Parameters:
key- the keyvalue- the valueoptions- options used to push pair- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/kv/:key endpoint
ConsulClient.putValueWithOptions(String, String, KeyValueOptions)
-
transaction
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.TxnResponse> transaction(io.vertx.ext.consul.TxnRequest request) Manages multiple operations inside a single, atomic transaction.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
request- transaction request- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/txn endpoint
ConsulClient.transaction(TxnRequest)
-
transactionAndAwait
public io.vertx.ext.consul.TxnResponse transactionAndAwait(io.vertx.ext.consul.TxnRequest request) Manages multiple operations inside a single, atomic transaction.Unlike the bare Vert.x variant, this method returns a
TxnResponse. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
request- transaction request- Returns:
- The operation result
- See Also:
-
- /v1/txn endpoint
ConsulClient.transaction(TxnRequest)
-
transactionAndForget
Manages multiple operations inside a single, atomic transaction.Unlike the bare Vert.x variant, this method ignores the
TxnResponseresult or any failure.- Parameters:
request- transaction request- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/txn endpoint
ConsulClient.transaction(TxnRequest)
-
createAclPolicy
@CheckReturnValue public io.smallrye.mutiny.Uni<String> createAclPolicy(io.vertx.ext.consul.policy.AclPolicy policy) Creates a new ACL policyUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
policy- properties of policy- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /acl/policy
ConsulClient.createAclPolicy(AclPolicy)
-
createAclPolicyAndAwait
Creates a new ACL policyUnlike the bare Vert.x variant, this method returns a
String. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
policy- properties of policy- Returns:
- The operation result
- See Also:
-
- /acl/policy
ConsulClient.createAclPolicy(AclPolicy)
-
createAclPolicyAndForget
Creates a new ACL policyUnlike the bare Vert.x variant, this method ignores the
Stringresult or any failure.- Parameters:
policy- properties of policy- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /acl/policy
ConsulClient.createAclPolicy(AclPolicy)
-
readPolicy
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.policy.AclPolicy> readPolicy(String id) Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
ConsulClient.readPolicy(String)
-
readPolicyAndAwait
Unlike the bare Vert.x variant, this method returns a
AclPolicy. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
ConsulClient.readPolicy(String)
-
readPolicyAndForget
Unlike the bare Vert.x variant, this method ignores the
AclPolicyresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
ConsulClient.readPolicy(String)
-
readPolicyByName
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.policy.AclPolicy> readPolicyByName(String name) This endpoint reads an ACL policy with the given nameUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
name- unique name of created policy- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- GET /v1/acl/policy/name/:name
ConsulClient.readPolicyByName(String)
-
readPolicyByNameAndAwait
This endpoint reads an ACL policy with the given nameUnlike the bare Vert.x variant, this method returns a
AclPolicy. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
name- unique name of created policy- Returns:
- The operation result
- See Also:
-
- GET /v1/acl/policy/name/:name
ConsulClient.readPolicyByName(String)
-
readPolicyByNameAndForget
This endpoint reads an ACL policy with the given nameUnlike the bare Vert.x variant, this method ignores the
AclPolicyresult or any failure.- Parameters:
name- unique name of created policy- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- GET /v1/acl/policy/name/:name
ConsulClient.readPolicyByName(String)
-
updatePolicy
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.policy.AclPolicy> updatePolicy(String id, io.vertx.ext.consul.policy.AclPolicy policy) This endpoint updates an existing ACL policyUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
id- uuid of existing policypolicy- options that will be applied to the existing policy- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- PUT /acl/policy/:id
ConsulClient.updatePolicy(String, AclPolicy)
-
updatePolicyAndAwait
public io.vertx.ext.consul.policy.AclPolicy updatePolicyAndAwait(String id, io.vertx.ext.consul.policy.AclPolicy policy) This endpoint updates an existing ACL policyUnlike the bare Vert.x variant, this method returns a
AclPolicy. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
id- uuid of existing policypolicy- options that will be applied to the existing policy- Returns:
- The operation result
- See Also:
-
- PUT /acl/policy/:id
ConsulClient.updatePolicy(String, AclPolicy)
-
updatePolicyAndForget
This endpoint updates an existing ACL policyUnlike the bare Vert.x variant, this method ignores the
AclPolicyresult or any failure.- Parameters:
id- uuid of existing policypolicy- options that will be applied to the existing policy- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- PUT /acl/policy/:id
ConsulClient.updatePolicy(String, AclPolicy)
-
deletePolicy
This endpoint deletes an ACL policyUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
id- uuid of existing policy- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- DELETE /acl/policy/:id
ConsulClient.deletePolicy(String)
-
deletePolicyAndAwait
This endpoint deletes an ACL policyUnlike the bare Vert.x variant, this method returns a
Boolean. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
id- uuid of existing policy- Returns:
- The operation result
- See Also:
-
- DELETE /acl/policy/:id
ConsulClient.deletePolicy(String)
-
deletePolicyAndForget
This endpoint deletes an ACL policyUnlike the bare Vert.x variant, this method ignores the
Booleanresult or any failure.- Parameters:
id- uuid of existing policy- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- DELETE /acl/policy/:id
ConsulClient.deletePolicy(String)
-
getAclPolicies
@CheckReturnValue public io.smallrye.mutiny.Uni<List<io.vertx.ext.consul.policy.AclPolicy>> getAclPolicies()This endpoint lists all the ACL policies. Note - The policies rules are not included in the listing and must be retrieved by the policy reading endpointUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- GET /acl/policies
ConsulClient.getAclPolicies()
-
getAclPoliciesAndAwait
This endpoint lists all the ACL policies. Note - The policies rules are not included in the listing and must be retrieved by the policy reading endpointUnlike the bare Vert.x variant, this method returns a
List<io.vertx.ext.consul.policy.AclPolicy>. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- GET /acl/policies
ConsulClient.getAclPolicies()
-
getAclPoliciesAndForget
This endpoint lists all the ACL policies. Note - The policies rules are not included in the listing and must be retrieved by the policy reading endpointUnlike the bare Vert.x variant, this method ignores the
List<io.vertx.ext.consul.policy.AclPolicy>result or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- GET /acl/policies
ConsulClient.getAclPolicies()
-
createAclToken
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.token.AclToken> createAclToken(io.vertx.ext.consul.token.AclToken token) Create an Acl tokenUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
token- properties of the token- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/acl/create endpoint
ConsulClient.createAclToken(AclToken)
-
createAclTokenAndAwait
public io.vertx.ext.consul.token.AclToken createAclTokenAndAwait(io.vertx.ext.consul.token.AclToken token) Create an Acl tokenUnlike the bare Vert.x variant, this method returns a
AclToken. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
token- properties of the token- Returns:
- The operation result
- See Also:
-
- /v1/acl/create endpoint
ConsulClient.createAclToken(AclToken)
-
createAclTokenAndForget
Create an Acl tokenUnlike the bare Vert.x variant, this method ignores the
AclTokenresult or any failure.- Parameters:
token- properties of the token- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/acl/create endpoint
ConsulClient.createAclToken(AclToken)
-
updateAclToken
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.token.AclToken> updateAclToken(String accessorId, io.vertx.ext.consul.token.AclToken token) Update an existing Acl tokenUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
accessorId- uuid of the tokentoken- properties of the token- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /acl/token/:accessorId endpoint
ConsulClient.updateAclToken(String, io.vertx.ext.consul.token.AclToken)
-
updateAclTokenAndAwait
public io.vertx.ext.consul.token.AclToken updateAclTokenAndAwait(String accessorId, io.vertx.ext.consul.token.AclToken token) Update an existing Acl tokenUnlike the bare Vert.x variant, this method returns a
AclToken. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
accessorId- uuid of the tokentoken- properties of the token- Returns:
- The operation result
- See Also:
-
- /acl/token/:accessorId endpoint
ConsulClient.updateAclToken(String, io.vertx.ext.consul.token.AclToken)
-
updateAclTokenAndForget
public ConsulClient updateAclTokenAndForget(String accessorId, io.vertx.ext.consul.token.AclToken token) Update an existing Acl tokenUnlike the bare Vert.x variant, this method ignores the
AclTokenresult or any failure.- Parameters:
accessorId- uuid of the tokentoken- properties of the token- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /acl/token/:accessorId endpoint
ConsulClient.updateAclToken(String, io.vertx.ext.consul.token.AclToken)
-
cloneAclToken
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.token.AclToken> cloneAclToken(String accessorId, io.vertx.ext.consul.token.CloneAclTokenOptions cloneAclTokenOptions) Clones an existing ACL tokenUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
accessorId- uuid of the tokencloneAclTokenOptions- properties of cloned token- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /acl/token/:accessorId/clone endpoint
ConsulClient.cloneAclToken(String, CloneAclTokenOptions)
-
cloneAclTokenAndAwait
public io.vertx.ext.consul.token.AclToken cloneAclTokenAndAwait(String accessorId, io.vertx.ext.consul.token.CloneAclTokenOptions cloneAclTokenOptions) Clones an existing ACL tokenUnlike the bare Vert.x variant, this method returns a
AclToken. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
accessorId- uuid of the tokencloneAclTokenOptions- properties of cloned token- Returns:
- The operation result
- See Also:
-
- /acl/token/:accessorId/clone endpoint
ConsulClient.cloneAclToken(String, CloneAclTokenOptions)
-
cloneAclTokenAndForget
public ConsulClient cloneAclTokenAndForget(String accessorId, io.vertx.ext.consul.token.CloneAclTokenOptions cloneAclTokenOptions) Clones an existing ACL tokenUnlike the bare Vert.x variant, this method ignores the
AclTokenresult or any failure.- Parameters:
accessorId- uuid of the tokencloneAclTokenOptions- properties of cloned token- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /acl/token/:accessorId/clone endpoint
ConsulClient.cloneAclToken(String, CloneAclTokenOptions)
-
getAclTokens
@CheckReturnValue public io.smallrye.mutiny.Uni<List<io.vertx.ext.consul.token.AclToken>> getAclTokens()Get list of Acl tokenUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/acl/tokens endpoint
ConsulClient.getAclTokens()
-
getAclTokensAndAwait
Get list of Acl tokenUnlike the bare Vert.x variant, this method returns a
List<io.vertx.ext.consul.token.AclToken>. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/acl/tokens endpoint
ConsulClient.getAclTokens()
-
getAclTokensAndForget
Get list of Acl tokenUnlike the bare Vert.x variant, this method ignores the
List<io.vertx.ext.consul.token.AclToken>result or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/acl/tokens endpoint
ConsulClient.getAclTokens()
-
readAclToken
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.token.AclToken> readAclToken(String accessorId) Reads an ACL token with the given Accessor IDUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
accessorId- uuid of token- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/acl/token/:AccessorID endpoint
ConsulClient.readAclToken(String)
-
readAclTokenAndAwait
Reads an ACL token with the given Accessor IDUnlike the bare Vert.x variant, this method returns a
AclToken. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
accessorId- uuid of token- Returns:
- The operation result
- See Also:
-
- /v1/acl/token/:AccessorID endpoint
ConsulClient.readAclToken(String)
-
readAclTokenAndForget
Reads an ACL token with the given Accessor IDUnlike the bare Vert.x variant, this method ignores the
AclTokenresult or any failure.- Parameters:
accessorId- uuid of token- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/acl/token/:AccessorID endpoint
ConsulClient.readAclToken(String)
-
deleteAclToken
Deletes an ACL tokenUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
accessorId- uuid of token- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
ConsulClient.deleteAclToken(String)
-
deleteAclTokenAndAwait
Deletes an ACL tokenUnlike the bare Vert.x variant, this method returns a
Boolean. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
accessorId- uuid of token- Returns:
- The operation result
- See Also:
-
ConsulClient.deleteAclToken(String)
-
deleteAclTokenAndForget
Deletes an ACL tokenUnlike the bare Vert.x variant, this method ignores the
Booleanresult or any failure.- Parameters:
accessorId- uuid of token- Returns:
- The current instance to chain operations if needed.
- See Also:
-
ConsulClient.deleteAclToken(String)
-
fireEvent
Fires a new user eventUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
name- name of event- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/event/fire/:name endpoint
ConsulClient.fireEvent(String)
-
fireEventAndAwait
Fires a new user eventUnlike the bare Vert.x variant, this method returns a
Event. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
name- name of event- Returns:
- The operation result
- See Also:
-
- /v1/event/fire/:name endpoint
ConsulClient.fireEvent(String)
-
fireEventAndForget
Fires a new user eventUnlike the bare Vert.x variant, this method ignores the
Eventresult or any failure.- Parameters:
name- name of event- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/event/fire/:name endpoint
ConsulClient.fireEvent(String)
-
fireEventWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.Event> fireEventWithOptions(String name, io.vertx.ext.consul.EventOptions options) Fires a new user eventUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
name- name of eventoptions- options used to create event- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/event/fire/:name endpoint
ConsulClient.fireEventWithOptions(String, EventOptions)
-
fireEventWithOptionsAndAwait
public io.vertx.ext.consul.Event fireEventWithOptionsAndAwait(String name, io.vertx.ext.consul.EventOptions options) Fires a new user eventUnlike the bare Vert.x variant, this method returns a
Event. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
name- name of eventoptions- options used to create event- Returns:
- The operation result
- See Also:
-
- /v1/event/fire/:name endpoint
ConsulClient.fireEventWithOptions(String, EventOptions)
-
fireEventWithOptionsAndForget
public ConsulClient fireEventWithOptionsAndForget(String name, io.vertx.ext.consul.EventOptions options) Fires a new user eventUnlike the bare Vert.x variant, this method ignores the
Eventresult or any failure.- Parameters:
name- name of eventoptions- options used to create event- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/event/fire/:name endpoint
ConsulClient.fireEventWithOptions(String, EventOptions)
-
listEvents
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.EventList> listEvents()Returns the most recent events known by the agentUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/event/list endpoint
ConsulClient.listEvents()
-
listEventsAndAwait
public io.vertx.ext.consul.EventList listEventsAndAwait()Returns the most recent events known by the agentUnlike the bare Vert.x variant, this method returns a
EventList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/event/list endpoint
ConsulClient.listEvents()
-
listEventsAndForget
Returns the most recent events known by the agentUnlike the bare Vert.x variant, this method ignores the
EventListresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/event/list endpoint
ConsulClient.listEvents()
-
listEventsWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.EventList> listEventsWithOptions(io.vertx.ext.consul.EventListOptions options) Returns the most recent events known by the agent. This is blocking query unlikelistEvents(). However, the semantics of this endpoint are slightly different. Most blocking queries provide a monotonic index and block until a newer index is available. This can be supported as a consequence of the total ordering of the consensus protocol. With gossip, there is no ordering, and insteadX-Consul-Indexmaps to the newest event that matches the query.In practice, this means the index is only useful when used against a single agent and has no meaning globally. Because Consul defines the index as being opaque, clients should not be expecting a natural ordering either.
Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
options- the blocking options- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/event/list endpoint
ConsulClient.listEventsWithOptions(EventListOptions)
-
listEventsWithOptionsAndAwait
public io.vertx.ext.consul.EventList listEventsWithOptionsAndAwait(io.vertx.ext.consul.EventListOptions options) Returns the most recent events known by the agent. This is blocking query unlikelistEvents(). However, the semantics of this endpoint are slightly different. Most blocking queries provide a monotonic index and block until a newer index is available. This can be supported as a consequence of the total ordering of the consensus protocol. With gossip, there is no ordering, and insteadX-Consul-Indexmaps to the newest event that matches the query.In practice, this means the index is only useful when used against a single agent and has no meaning globally. Because Consul defines the index as being opaque, clients should not be expecting a natural ordering either.
Unlike the bare Vert.x variant, this method returns a
EventList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
options- the blocking options- Returns:
- The operation result
- See Also:
-
- /v1/event/list endpoint
ConsulClient.listEventsWithOptions(EventListOptions)
-
listEventsWithOptionsAndForget
Returns the most recent events known by the agent. This is blocking query unlikelistEvents(). However, the semantics of this endpoint are slightly different. Most blocking queries provide a monotonic index and block until a newer index is available. This can be supported as a consequence of the total ordering of the consensus protocol. With gossip, there is no ordering, and insteadX-Consul-Indexmaps to the newest event that matches the query.In practice, this means the index is only useful when used against a single agent and has no meaning globally. Because Consul defines the index as being opaque, clients should not be expecting a natural ordering either.
Unlike the bare Vert.x variant, this method ignores the
EventListresult or any failure.- Parameters:
options- the blocking options- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/event/list endpoint
ConsulClient.listEventsWithOptions(EventListOptions)
-
registerService
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> registerService(io.vertx.ext.consul.ServiceOptions serviceOptions) Adds a new service, with an optional health check, to the local agent.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
serviceOptions- the options of new service- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/service/register endpoint
ServiceOptionsConsulClient.registerService(ServiceOptions)
-
registerServiceAndAwait
public void registerServiceAndAwait(io.vertx.ext.consul.ServiceOptions serviceOptions) Adds a new service, with an optional health check, to the local agent.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
serviceOptions- the options of new service- See Also:
-
- /v1/agent/service/register endpoint
ServiceOptionsConsulClient.registerService(ServiceOptions)
-
registerServiceAndForget
Adds a new service, with an optional health check, to the local agent.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
serviceOptions- the options of new service- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/service/register endpoint
ServiceOptionsConsulClient.registerService(ServiceOptions)
-
maintenanceService
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> maintenanceService(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions) Places a given service into "maintenance mode"Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
maintenanceOptions- the maintenance options- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/service/maintenance/:service_id endpoint
MaintenanceOptionsConsulClient.maintenanceService(MaintenanceOptions)
-
maintenanceServiceAndAwait
public void maintenanceServiceAndAwait(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions) Places a given service into "maintenance mode"Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
maintenanceOptions- the maintenance options- See Also:
-
- /v1/agent/service/maintenance/:service_id endpoint
MaintenanceOptionsConsulClient.maintenanceService(MaintenanceOptions)
-
maintenanceServiceAndForget
public ConsulClient maintenanceServiceAndForget(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions) Places a given service into "maintenance mode"Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
maintenanceOptions- the maintenance options- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/service/maintenance/:service_id endpoint
MaintenanceOptionsConsulClient.maintenanceService(MaintenanceOptions)
-
deregisterService
Remove a service from the local agent. The agent will take care of deregistering the service with the Catalog. If there is an associated check, that is also deregistered.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
id- the ID of service- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/service/deregister/:service_id endpoint
ConsulClient.deregisterService(String)
-
deregisterServiceAndAwait
Remove a service from the local agent. The agent will take care of deregistering the service with the Catalog. If there is an associated check, that is also deregistered.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
id- the ID of service- See Also:
-
- /v1/agent/service/deregister/:service_id endpoint
ConsulClient.deregisterService(String)
-
deregisterServiceAndForget
Remove a service from the local agent. The agent will take care of deregistering the service with the Catalog. If there is an associated check, that is also deregistered.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
id- the ID of service- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/service/deregister/:service_id endpoint
ConsulClient.deregisterService(String)
-
catalogServiceNodes
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceList> catalogServiceNodes(String service) Returns the nodes providing a serviceUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
service- name of service- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/catalog/service/:service endpoint
ConsulClient.catalogServiceNodes(String)
-
catalogServiceNodesAndAwait
Returns the nodes providing a serviceUnlike the bare Vert.x variant, this method returns a
ServiceList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
service- name of service- Returns:
- The operation result
- See Also:
-
- /v1/catalog/service/:service endpoint
ConsulClient.catalogServiceNodes(String)
-
catalogServiceNodesAndForget
Returns the nodes providing a serviceUnlike the bare Vert.x variant, this method ignores the
ServiceListresult or any failure.- Parameters:
service- name of service- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/catalog/service/:service endpoint
ConsulClient.catalogServiceNodes(String)
-
catalogServiceNodesWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceList> catalogServiceNodesWithOptions(String service, io.vertx.ext.consul.ServiceQueryOptions options) Returns the nodes providing a serviceUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
service- name of serviceoptions- options used to request services- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/catalog/service/:service endpoint
ConsulClient.catalogServiceNodesWithOptions(String, ServiceQueryOptions)
-
catalogServiceNodesWithOptionsAndAwait
public io.vertx.ext.consul.ServiceList catalogServiceNodesWithOptionsAndAwait(String service, io.vertx.ext.consul.ServiceQueryOptions options) Returns the nodes providing a serviceUnlike the bare Vert.x variant, this method returns a
ServiceList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
service- name of serviceoptions- options used to request services- Returns:
- The operation result
- See Also:
-
- /v1/catalog/service/:service endpoint
ConsulClient.catalogServiceNodesWithOptions(String, ServiceQueryOptions)
-
catalogServiceNodesWithOptionsAndForget
public ConsulClient catalogServiceNodesWithOptionsAndForget(String service, io.vertx.ext.consul.ServiceQueryOptions options) Returns the nodes providing a serviceUnlike the bare Vert.x variant, this method ignores the
ServiceListresult or any failure.- Parameters:
service- name of serviceoptions- options used to request services- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/catalog/service/:service endpoint
ConsulClient.catalogServiceNodesWithOptions(String, ServiceQueryOptions)
-
catalogDatacenters
Return all the datacenters that are known by the Consul serverUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/catalog/datacenters endpoint
ConsulClient.catalogDatacenters()
-
catalogDatacentersAndAwait
Return all the datacenters that are known by the Consul serverUnlike the bare Vert.x variant, this method returns a
List<String>. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/catalog/datacenters endpoint
ConsulClient.catalogDatacenters()
-
catalogDatacentersAndForget
Return all the datacenters that are known by the Consul serverUnlike the bare Vert.x variant, this method ignores the
List<String>result or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/catalog/datacenters endpoint
ConsulClient.catalogDatacenters()
-
catalogNodes
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.NodeList> catalogNodes()Returns the nodes registered in a datacenterUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/catalog/nodes endpoint
ConsulClient.catalogNodes()
-
catalogNodesAndAwait
public io.vertx.ext.consul.NodeList catalogNodesAndAwait()Returns the nodes registered in a datacenterUnlike the bare Vert.x variant, this method returns a
NodeList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/catalog/nodes endpoint
ConsulClient.catalogNodes()
-
catalogNodesAndForget
Returns the nodes registered in a datacenterUnlike the bare Vert.x variant, this method ignores the
NodeListresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/catalog/nodes endpoint
ConsulClient.catalogNodes()
-
catalogNodesWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.NodeList> catalogNodesWithOptions(io.vertx.ext.consul.NodeQueryOptions options) Returns the nodes registered in a datacenterUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
options- options used to request nodes- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/catalog/nodes endpoint
ConsulClient.catalogNodesWithOptions(NodeQueryOptions)
-
catalogNodesWithOptionsAndAwait
public io.vertx.ext.consul.NodeList catalogNodesWithOptionsAndAwait(io.vertx.ext.consul.NodeQueryOptions options) Returns the nodes registered in a datacenterUnlike the bare Vert.x variant, this method returns a
NodeList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
options- options used to request nodes- Returns:
- The operation result
- See Also:
-
- /v1/catalog/nodes endpoint
ConsulClient.catalogNodesWithOptions(NodeQueryOptions)
-
catalogNodesWithOptionsAndForget
Returns the nodes registered in a datacenterUnlike the bare Vert.x variant, this method ignores the
NodeListresult or any failure.- Parameters:
options- options used to request nodes- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/catalog/nodes endpoint
ConsulClient.catalogNodesWithOptions(NodeQueryOptions)
-
healthChecks
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.CheckList> healthChecks(String service) Returns the checks associated with the serviceUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
service- the service name- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/health/checks/:service endpoint
ConsulClient.healthChecks(String)
-
healthChecksAndAwait
Returns the checks associated with the serviceUnlike the bare Vert.x variant, this method returns a
CheckList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
service- the service name- Returns:
- The operation result
- See Also:
-
- /v1/health/checks/:service endpoint
ConsulClient.healthChecks(String)
-
healthChecksAndForget
Returns the checks associated with the serviceUnlike the bare Vert.x variant, this method ignores the
CheckListresult or any failure.- Parameters:
service- the service name- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/health/checks/:service endpoint
ConsulClient.healthChecks(String)
-
healthChecksWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.CheckList> healthChecksWithOptions(String service, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks associated with the serviceUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
service- the service nameoptions- options used to request checks- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/health/checks/:service endpoint
ConsulClient.healthChecksWithOptions(String, CheckQueryOptions)
-
healthChecksWithOptionsAndAwait
public io.vertx.ext.consul.CheckList healthChecksWithOptionsAndAwait(String service, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks associated with the serviceUnlike the bare Vert.x variant, this method returns a
CheckList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
service- the service nameoptions- options used to request checks- Returns:
- The operation result
- See Also:
-
- /v1/health/checks/:service endpoint
ConsulClient.healthChecksWithOptions(String, CheckQueryOptions)
-
healthChecksWithOptionsAndForget
public ConsulClient healthChecksWithOptionsAndForget(String service, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks associated with the serviceUnlike the bare Vert.x variant, this method ignores the
CheckListresult or any failure.- Parameters:
service- the service nameoptions- options used to request checks- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/health/checks/:service endpoint
ConsulClient.healthChecksWithOptions(String, CheckQueryOptions)
-
healthState
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.CheckList> healthState(io.vertx.ext.consul.HealthState healthState) Returns the checks in the specified statusUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
healthState- the health state- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/health/state/:state endpoint
ConsulClient.healthState(HealthState)
-
healthStateAndAwait
public io.vertx.ext.consul.CheckList healthStateAndAwait(io.vertx.ext.consul.HealthState healthState) Returns the checks in the specified statusUnlike the bare Vert.x variant, this method returns a
CheckList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
healthState- the health state- Returns:
- The operation result
- See Also:
-
- /v1/health/state/:state endpoint
ConsulClient.healthState(HealthState)
-
healthStateAndForget
Returns the checks in the specified statusUnlike the bare Vert.x variant, this method ignores the
CheckListresult or any failure.- Parameters:
healthState- the health state- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/health/state/:state endpoint
ConsulClient.healthState(HealthState)
-
healthStateWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.CheckList> healthStateWithOptions(io.vertx.ext.consul.HealthState healthState, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks in the specified statusUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
healthState- the health stateoptions- options used to request checks- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/health/state/:state endpoint
ConsulClient.healthStateWithOptions(HealthState, CheckQueryOptions)
-
healthStateWithOptionsAndAwait
public io.vertx.ext.consul.CheckList healthStateWithOptionsAndAwait(io.vertx.ext.consul.HealthState healthState, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks in the specified statusUnlike the bare Vert.x variant, this method returns a
CheckList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
healthState- the health stateoptions- options used to request checks- Returns:
- The operation result
- See Also:
-
- /v1/health/state/:state endpoint
ConsulClient.healthStateWithOptions(HealthState, CheckQueryOptions)
-
healthStateWithOptionsAndForget
public ConsulClient healthStateWithOptionsAndForget(io.vertx.ext.consul.HealthState healthState, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks in the specified statusUnlike the bare Vert.x variant, this method ignores the
CheckListresult or any failure.- Parameters:
healthState- the health stateoptions- options used to request checks- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/health/state/:state endpoint
ConsulClient.healthStateWithOptions(HealthState, CheckQueryOptions)
-
healthServiceNodes
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceEntryList> healthServiceNodes(String service, boolean passing) Returns the nodes providing the service. This endpoint is very similar to thecatalogServiceNodes(java.lang.String)endpoint; however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
service- the service namepassing- if true, filter results to only nodes with all checks in the passing state- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/health/service/:service endpoint
ConsulClient.healthServiceNodes(String, boolean)
-
healthServiceNodesAndAwait
public io.vertx.ext.consul.ServiceEntryList healthServiceNodesAndAwait(String service, boolean passing) Returns the nodes providing the service. This endpoint is very similar to thecatalogServiceNodes(java.lang.String)endpoint; however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.Unlike the bare Vert.x variant, this method returns a
ServiceEntryList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
service- the service namepassing- if true, filter results to only nodes with all checks in the passing state- Returns:
- The operation result
- See Also:
-
- /v1/health/service/:service endpoint
ConsulClient.healthServiceNodes(String, boolean)
-
healthServiceNodesAndForget
Returns the nodes providing the service. This endpoint is very similar to thecatalogServiceNodes(java.lang.String)endpoint; however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.Unlike the bare Vert.x variant, this method ignores the
ServiceEntryListresult or any failure.- Parameters:
service- the service namepassing- if true, filter results to only nodes with all checks in the passing state- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/health/service/:service endpoint
ConsulClient.healthServiceNodes(String, boolean)
-
healthServiceNodesWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceEntryList> healthServiceNodesWithOptions(String service, boolean passing, io.vertx.ext.consul.ServiceQueryOptions options) Returns the nodes providing the service. This endpoint is very similar to thecatalogServiceNodesWithOptions(java.lang.String, io.vertx.ext.consul.ServiceQueryOptions)endpoint; however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
service- the service namepassing- if true, filter results to only nodes with all checks in the passing stateoptions- options used to request services- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/health/service/:service endpoint
ConsulClient.healthServiceNodesWithOptions(String, boolean, ServiceQueryOptions)
-
healthServiceNodesWithOptionsAndAwait
public io.vertx.ext.consul.ServiceEntryList healthServiceNodesWithOptionsAndAwait(String service, boolean passing, io.vertx.ext.consul.ServiceQueryOptions options) Returns the nodes providing the service. This endpoint is very similar to thecatalogServiceNodesWithOptions(java.lang.String, io.vertx.ext.consul.ServiceQueryOptions)endpoint; however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.Unlike the bare Vert.x variant, this method returns a
ServiceEntryList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
service- the service namepassing- if true, filter results to only nodes with all checks in the passing stateoptions- options used to request services- Returns:
- The operation result
- See Also:
-
- /v1/health/service/:service endpoint
ConsulClient.healthServiceNodesWithOptions(String, boolean, ServiceQueryOptions)
-
healthServiceNodesWithOptionsAndForget
public ConsulClient healthServiceNodesWithOptionsAndForget(String service, boolean passing, io.vertx.ext.consul.ServiceQueryOptions options) Returns the nodes providing the service. This endpoint is very similar to thecatalogServiceNodesWithOptions(java.lang.String, io.vertx.ext.consul.ServiceQueryOptions)endpoint; however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.Unlike the bare Vert.x variant, this method ignores the
ServiceEntryListresult or any failure.- Parameters:
service- the service namepassing- if true, filter results to only nodes with all checks in the passing stateoptions- options used to request services- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/health/service/:service endpoint
ConsulClient.healthServiceNodesWithOptions(String, boolean, ServiceQueryOptions)
-
healthNodesWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.CheckList> healthNodesWithOptions(String node, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks specific to the node provided on the path.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
node- the node name or IDoptions- options used to request node health checks- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/health/node/:node endpoint
ConsulClient.healthNodesWithOptions(String, CheckQueryOptions)
-
healthNodesWithOptionsAndAwait
public io.vertx.ext.consul.CheckList healthNodesWithOptionsAndAwait(String node, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks specific to the node provided on the path.Unlike the bare Vert.x variant, this method returns a
CheckList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
node- the node name or IDoptions- options used to request node health checks- Returns:
- The operation result
- See Also:
-
- /v1/health/node/:node endpoint
ConsulClient.healthNodesWithOptions(String, CheckQueryOptions)
-
healthNodesWithOptionsAndForget
public ConsulClient healthNodesWithOptionsAndForget(String node, io.vertx.ext.consul.CheckQueryOptions options) Returns the checks specific to the node provided on the path.Unlike the bare Vert.x variant, this method ignores the
CheckListresult or any failure.- Parameters:
node- the node name or IDoptions- options used to request node health checks- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/health/node/:node endpoint
ConsulClient.healthNodesWithOptions(String, CheckQueryOptions)
-
catalogServices
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceList> catalogServices()Returns the services registered in a datacenterUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/catalog/services endpoint
ConsulClient.catalogServices()
-
catalogServicesAndAwait
public io.vertx.ext.consul.ServiceList catalogServicesAndAwait()Returns the services registered in a datacenterUnlike the bare Vert.x variant, this method returns a
ServiceList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/catalog/services endpoint
ConsulClient.catalogServices()
-
catalogServicesAndForget
Returns the services registered in a datacenterUnlike the bare Vert.x variant, this method ignores the
ServiceListresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/catalog/services endpoint
ConsulClient.catalogServices()
-
catalogServicesWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceList> catalogServicesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options) Returns the services registered in a datacenter This is blocking query unlikecatalogServices()Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
options- the blocking options- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/catalog/services endpoint
ConsulClient.catalogServicesWithOptions(BlockingQueryOptions)
-
catalogServicesWithOptionsAndAwait
public io.vertx.ext.consul.ServiceList catalogServicesWithOptionsAndAwait(io.vertx.ext.consul.BlockingQueryOptions options) Returns the services registered in a datacenter This is blocking query unlikecatalogServices()Unlike the bare Vert.x variant, this method returns a
ServiceList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
options- the blocking options- Returns:
- The operation result
- See Also:
-
- /v1/catalog/services endpoint
ConsulClient.catalogServicesWithOptions(BlockingQueryOptions)
-
catalogServicesWithOptionsAndForget
public ConsulClient catalogServicesWithOptionsAndForget(io.vertx.ext.consul.BlockingQueryOptions options) Returns the services registered in a datacenter This is blocking query unlikecatalogServices()Unlike the bare Vert.x variant, this method ignores the
ServiceListresult or any failure.- Parameters:
options- the blocking options- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/catalog/services endpoint
ConsulClient.catalogServicesWithOptions(BlockingQueryOptions)
-
catalogNodeServices
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceList> catalogNodeServices(String node) Returns the node's registered servicesUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
node- node name- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/catalog/node/:node endpoint
ConsulClient.catalogNodeServices(String)
-
catalogNodeServicesAndAwait
Returns the node's registered servicesUnlike the bare Vert.x variant, this method returns a
ServiceList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
node- node name- Returns:
- The operation result
- See Also:
-
- /v1/catalog/node/:node endpoint
ConsulClient.catalogNodeServices(String)
-
catalogNodeServicesAndForget
Returns the node's registered servicesUnlike the bare Vert.x variant, this method ignores the
ServiceListresult or any failure.- Parameters:
node- node name- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/catalog/node/:node endpoint
ConsulClient.catalogNodeServices(String)
-
catalogNodeServicesWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.ServiceList> catalogNodeServicesWithOptions(String node, io.vertx.ext.consul.BlockingQueryOptions options) Returns the node's registered services This is blocking query unlikecatalogNodeServices(String)Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
node- node nameoptions- the blocking options- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/catalog/node/:node endpoint
ConsulClient.catalogNodeServicesWithOptions(String, BlockingQueryOptions)
-
catalogNodeServicesWithOptionsAndAwait
public io.vertx.ext.consul.ServiceList catalogNodeServicesWithOptionsAndAwait(String node, io.vertx.ext.consul.BlockingQueryOptions options) Returns the node's registered services This is blocking query unlikecatalogNodeServices(String)Unlike the bare Vert.x variant, this method returns a
ServiceList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
node- node nameoptions- the blocking options- Returns:
- The operation result
- See Also:
-
- /v1/catalog/node/:node endpoint
ConsulClient.catalogNodeServicesWithOptions(String, BlockingQueryOptions)
-
catalogNodeServicesWithOptionsAndForget
public ConsulClient catalogNodeServicesWithOptionsAndForget(String node, io.vertx.ext.consul.BlockingQueryOptions options) Returns the node's registered services This is blocking query unlikecatalogNodeServices(String)Unlike the bare Vert.x variant, this method ignores the
ServiceListresult or any failure.- Parameters:
node- node nameoptions- the blocking options- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/catalog/node/:node endpoint
ConsulClient.catalogNodeServicesWithOptions(String, BlockingQueryOptions)
-
localServices
Returns list of services registered with the local agent.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/services endpoint
ConsulClient.localServices()
-
localServicesAndAwait
Returns list of services registered with the local agent.Unlike the bare Vert.x variant, this method returns a
List<io.vertx.ext.consul.Service>. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/agent/services endpoint
ConsulClient.localServices()
-
localServicesAndForget
Returns list of services registered with the local agent.Unlike the bare Vert.x variant, this method ignores the
List<io.vertx.ext.consul.Service>result or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/services endpoint
ConsulClient.localServices()
-
localChecks
Return all the checks that are registered with the local agent.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/checks endpoint
ConsulClient.localChecks()
-
localChecksAndAwait
Return all the checks that are registered with the local agent.Unlike the bare Vert.x variant, this method returns a
List<io.vertx.ext.consul.Check>. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/agent/checks endpoint
ConsulClient.localChecks()
-
localChecksAndForget
Return all the checks that are registered with the local agent.Unlike the bare Vert.x variant, this method ignores the
List<io.vertx.ext.consul.Check>result or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/checks endpoint
ConsulClient.localChecks()
-
registerCheck
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> registerCheck(io.vertx.ext.consul.CheckOptions checkOptions) Add a new check to the local agent. The agent is responsible for managing the status of the check and keeping the Catalog in sync.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
checkOptions- options used to register new check- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/check/register endpoint
ConsulClient.registerCheck(CheckOptions)
-
registerCheckAndAwait
public void registerCheckAndAwait(io.vertx.ext.consul.CheckOptions checkOptions) Add a new check to the local agent. The agent is responsible for managing the status of the check and keeping the Catalog in sync.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
checkOptions- options used to register new check- See Also:
-
- /v1/agent/check/register endpoint
ConsulClient.registerCheck(CheckOptions)
-
registerCheckAndForget
Add a new check to the local agent. The agent is responsible for managing the status of the check and keeping the Catalog in sync.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
checkOptions- options used to register new check- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/check/register endpoint
ConsulClient.registerCheck(CheckOptions)
-
deregisterCheck
Remove a check from the local agent. The agent will take care of deregistering the check from the Catalog.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
checkId- the ID of check- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/check/deregister/:check_id endpoint
ConsulClient.deregisterCheck(String)
-
deregisterCheckAndAwait
Remove a check from the local agent. The agent will take care of deregistering the check from the Catalog.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
checkId- the ID of check- See Also:
-
- /v1/agent/check/deregister/:check_id endpoint
ConsulClient.deregisterCheck(String)
-
deregisterCheckAndForget
Remove a check from the local agent. The agent will take care of deregistering the check from the Catalog.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
checkId- the ID of check- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/check/deregister/:check_id endpoint
ConsulClient.deregisterCheck(String)
-
passCheck
Set status of the check to "passing". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
checkId- the ID of check- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/check/pass/:check_id endpoint
CheckStatusConsulClient.passCheck(String)
-
passCheckAndAwait
Set status of the check to "passing". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
checkId- the ID of check- See Also:
-
- /v1/agent/check/pass/:check_id endpoint
CheckStatusConsulClient.passCheck(String)
-
passCheckAndForget
Set status of the check to "passing". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
checkId- the ID of check- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/check/pass/:check_id endpoint
CheckStatusConsulClient.passCheck(String)
-
passCheckWithNote
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> passCheckWithNote(String checkId, String note) Set status of the check to "passing". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/check/pass/:check_id endpoint
CheckStatusConsulClient.passCheckWithNote(String, String)
-
passCheckWithNoteAndAwait
Set status of the check to "passing". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- See Also:
-
- /v1/agent/check/pass/:check_id endpoint
CheckStatusConsulClient.passCheckWithNote(String, String)
-
passCheckWithNoteAndForget
Set status of the check to "passing". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/check/pass/:check_id endpoint
CheckStatusConsulClient.passCheckWithNote(String, String)
-
warnCheck
Set status of the check to "warning". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
checkId- the ID of check- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/check/warn/:check_id endpoint
CheckStatusConsulClient.warnCheck(String)
-
warnCheckAndAwait
Set status of the check to "warning". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
checkId- the ID of check- See Also:
-
- /v1/agent/check/warn/:check_id endpoint
CheckStatusConsulClient.warnCheck(String)
-
warnCheckAndForget
Set status of the check to "warning". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
checkId- the ID of check- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/check/warn/:check_id endpoint
CheckStatusConsulClient.warnCheck(String)
-
warnCheckWithNote
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> warnCheckWithNote(String checkId, String note) Set status of the check to "warning". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/check/warn/:check_id endpoint
CheckStatusConsulClient.warnCheckWithNote(String, String)
-
warnCheckWithNoteAndAwait
Set status of the check to "warning". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- See Also:
-
- /v1/agent/check/warn/:check_id endpoint
CheckStatusConsulClient.warnCheckWithNote(String, String)
-
warnCheckWithNoteAndForget
Set status of the check to "warning". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/check/warn/:check_id endpoint
CheckStatusConsulClient.warnCheckWithNote(String, String)
-
failCheck
Set status of the check to "critical". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
checkId- the ID of check- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/check/fail/:check_id endpoint
CheckStatusConsulClient.failCheck(String)
-
failCheckAndAwait
Set status of the check to "critical". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
checkId- the ID of check- See Also:
-
- /v1/agent/check/fail/:check_id endpoint
CheckStatusConsulClient.failCheck(String)
-
failCheckAndForget
Set status of the check to "critical". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
checkId- the ID of check- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/check/fail/:check_id endpoint
CheckStatusConsulClient.failCheck(String)
-
failCheckWithNote
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> failCheckWithNote(String checkId, String note) Set status of the check to "critical". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/check/fail/:check_id endpoint
CheckStatusConsulClient.failCheckWithNote(String, String)
-
failCheckWithNoteAndAwait
Set status of the check to "critical". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- See Also:
-
- /v1/agent/check/fail/:check_id endpoint
CheckStatusConsulClient.failCheckWithNote(String, String)
-
failCheckWithNoteAndForget
Set status of the check to "critical". Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/check/fail/:check_id endpoint
CheckStatusConsulClient.failCheckWithNote(String, String)
-
updateCheck
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> updateCheck(String checkId, io.vertx.ext.consul.CheckStatus status) Set status of the check to given status. Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
checkId- the ID of checkstatus- new status of check- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/check/update/:check_id endpoint
ConsulClient.updateCheck(String, CheckStatus)
-
updateCheckAndAwait
Set status of the check to given status. Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
checkId- the ID of checkstatus- new status of check- See Also:
-
- /v1/agent/check/update/:check_id endpoint
ConsulClient.updateCheck(String, CheckStatus)
-
updateCheckAndForget
Set status of the check to given status. Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
checkId- the ID of checkstatus- new status of check- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/check/update/:check_id endpoint
ConsulClient.updateCheck(String, CheckStatus)
-
updateCheckWithNote
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> updateCheckWithNote(String checkId, io.vertx.ext.consul.CheckStatus status, String note) Set status of the check to given status. Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
checkId- the ID of checkstatus- new status of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/agent/check/update/:check_id endpoint
ConsulClient.updateCheckWithNote(String, CheckStatus, String)
-
updateCheckWithNoteAndAwait
public void updateCheckWithNoteAndAwait(String checkId, io.vertx.ext.consul.CheckStatus status, String note) Set status of the check to given status. Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
checkId- the ID of checkstatus- new status of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- See Also:
-
- /v1/agent/check/update/:check_id endpoint
ConsulClient.updateCheckWithNote(String, CheckStatus, String)
-
updateCheckWithNoteAndForget
public ConsulClient updateCheckWithNoteAndForget(String checkId, io.vertx.ext.consul.CheckStatus status, String note) Set status of the check to given status. Used with a check that is of the TTL type. The TTL clock will be reset.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
checkId- the ID of checkstatus- new status of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/agent/check/update/:check_id endpoint
ConsulClient.updateCheckWithNote(String, CheckStatus, String)
-
leaderStatus
Get the Raft leader for the datacenter in which the agent is running. It returns an address in format "10.1.10.12:8300"Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/status/leader endpoint
ConsulClient.leaderStatus()
-
leaderStatusAndAwait
Get the Raft leader for the datacenter in which the agent is running. It returns an address in format "10.1.10.12:8300"Unlike the bare Vert.x variant, this method returns a
String. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/status/leader endpoint
ConsulClient.leaderStatus()
-
leaderStatusAndForget
Get the Raft leader for the datacenter in which the agent is running. It returns an address in format "10.1.10.12:8300"Unlike the bare Vert.x variant, this method ignores the
Stringresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/status/leader endpoint
ConsulClient.leaderStatus()
-
peersStatus
Retrieves the Raft peers for the datacenter in which the the agent is running. It returns a list of addresses "10.1.10.12:8300", "10.1.10.13:8300"Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/status/peers endpoint
ConsulClient.peersStatus()
-
peersStatusAndAwait
Retrieves the Raft peers for the datacenter in which the the agent is running. It returns a list of addresses "10.1.10.12:8300", "10.1.10.13:8300"Unlike the bare Vert.x variant, this method returns a
List<String>. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/status/peers endpoint
ConsulClient.peersStatus()
-
peersStatusAndForget
Retrieves the Raft peers for the datacenter in which the the agent is running. It returns a list of addresses "10.1.10.12:8300", "10.1.10.13:8300"Unlike the bare Vert.x variant, this method ignores the
List<String>result or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/status/peers endpoint
ConsulClient.peersStatus()
-
createSession
Initialize a new sessionUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/session/create endpoint
ConsulClient.createSession()
-
createSessionAndAwait
Initialize a new sessionUnlike the bare Vert.x variant, this method returns a
String. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/session/create endpoint
ConsulClient.createSession()
-
createSessionAndForget
Initialize a new sessionUnlike the bare Vert.x variant, this method ignores the
Stringresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/session/create endpoint
ConsulClient.createSession()
-
createSessionWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<String> createSessionWithOptions(io.vertx.ext.consul.SessionOptions options) Initialize a new sessionUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
options- options used to create session- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/session/create endpoint
ConsulClient.createSessionWithOptions(SessionOptions)
-
createSessionWithOptionsAndAwait
Initialize a new sessionUnlike the bare Vert.x variant, this method returns a
String. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
options- options used to create session- Returns:
- The operation result
- See Also:
-
- /v1/session/create endpoint
ConsulClient.createSessionWithOptions(SessionOptions)
-
createSessionWithOptionsAndForget
Initialize a new sessionUnlike the bare Vert.x variant, this method ignores the
Stringresult or any failure.- Parameters:
options- options used to create session- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/session/create endpoint
ConsulClient.createSessionWithOptions(SessionOptions)
-
infoSession
Returns the requested session informationUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
id- the ID of requested session- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/session/info/:uuid endpoint
ConsulClient.infoSession(String)
-
infoSessionAndAwait
Returns the requested session informationUnlike the bare Vert.x variant, this method returns a
Session. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
id- the ID of requested session- Returns:
- The operation result
- See Also:
-
- /v1/session/info/:uuid endpoint
ConsulClient.infoSession(String)
-
infoSessionAndForget
Returns the requested session informationUnlike the bare Vert.x variant, this method ignores the
Sessionresult or any failure.- Parameters:
id- the ID of requested session- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/session/info/:uuid endpoint
ConsulClient.infoSession(String)
-
infoSessionWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.Session> infoSessionWithOptions(String id, io.vertx.ext.consul.BlockingQueryOptions options) Returns the requested session information This is blocking query unlikeinfoSession(String)Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
id- the ID of requested sessionoptions- the blocking options- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/session/info/:uuid endpoint
ConsulClient.infoSessionWithOptions(String, BlockingQueryOptions)
-
infoSessionWithOptionsAndAwait
public io.vertx.ext.consul.Session infoSessionWithOptionsAndAwait(String id, io.vertx.ext.consul.BlockingQueryOptions options) Returns the requested session information This is blocking query unlikeinfoSession(String)Unlike the bare Vert.x variant, this method returns a
Session. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
id- the ID of requested sessionoptions- the blocking options- Returns:
- The operation result
- See Also:
-
- /v1/session/info/:uuid endpoint
ConsulClient.infoSessionWithOptions(String, BlockingQueryOptions)
-
infoSessionWithOptionsAndForget
public ConsulClient infoSessionWithOptionsAndForget(String id, io.vertx.ext.consul.BlockingQueryOptions options) Returns the requested session information This is blocking query unlikeinfoSession(String)Unlike the bare Vert.x variant, this method ignores the
Sessionresult or any failure.- Parameters:
id- the ID of requested sessionoptions- the blocking options- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/session/info/:uuid endpoint
ConsulClient.infoSessionWithOptions(String, BlockingQueryOptions)
-
renewSession
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.Session> renewSession(String id) Renews the given session. This is used with sessions that have a TTL, and it extends the expiration by the TTLUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
id- the ID of session that should be renewed- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/session/renew/:uuid endpoint
ConsulClient.renewSession(String)
-
renewSessionAndAwait
Renews the given session. This is used with sessions that have a TTL, and it extends the expiration by the TTLUnlike the bare Vert.x variant, this method returns a
Session. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
id- the ID of session that should be renewed- Returns:
- The operation result
- See Also:
-
- /v1/session/renew/:uuid endpoint
ConsulClient.renewSession(String)
-
renewSessionAndForget
Renews the given session. This is used with sessions that have a TTL, and it extends the expiration by the TTLUnlike the bare Vert.x variant, this method ignores the
Sessionresult or any failure.- Parameters:
id- the ID of session that should be renewed- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/session/renew/:uuid endpoint
ConsulClient.renewSession(String)
-
listSessions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.SessionList> listSessions()Returns the active sessionsUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/session/list endpoint
ConsulClient.listSessions()
-
listSessionsAndAwait
public io.vertx.ext.consul.SessionList listSessionsAndAwait()Returns the active sessionsUnlike the bare Vert.x variant, this method returns a
SessionList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/session/list endpoint
ConsulClient.listSessions()
-
listSessionsAndForget
Returns the active sessionsUnlike the bare Vert.x variant, this method ignores the
SessionListresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/session/list endpoint
ConsulClient.listSessions()
-
listSessionsWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.SessionList> listSessionsWithOptions(io.vertx.ext.consul.BlockingQueryOptions options) Returns the active sessions This is blocking query unlikelistSessions()Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
options- the blocking options- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/session/list endpoint
ConsulClient.listSessionsWithOptions(BlockingQueryOptions)
-
listSessionsWithOptionsAndAwait
public io.vertx.ext.consul.SessionList listSessionsWithOptionsAndAwait(io.vertx.ext.consul.BlockingQueryOptions options) Returns the active sessions This is blocking query unlikelistSessions()Unlike the bare Vert.x variant, this method returns a
SessionList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
options- the blocking options- Returns:
- The operation result
- See Also:
-
- /v1/session/list endpoint
ConsulClient.listSessionsWithOptions(BlockingQueryOptions)
-
listSessionsWithOptionsAndForget
public ConsulClient listSessionsWithOptionsAndForget(io.vertx.ext.consul.BlockingQueryOptions options) Returns the active sessions This is blocking query unlikelistSessions()Unlike the bare Vert.x variant, this method ignores the
SessionListresult or any failure.- Parameters:
options- the blocking options- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/session/list endpoint
ConsulClient.listSessionsWithOptions(BlockingQueryOptions)
-
listNodeSessions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.SessionList> listNodeSessions(String nodeId) Returns the active sessions for a given nodeUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
nodeId- the ID of node- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/session/node/:node endpoint
ConsulClient.listNodeSessions(String)
-
listNodeSessionsAndAwait
Returns the active sessions for a given nodeUnlike the bare Vert.x variant, this method returns a
SessionList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
nodeId- the ID of node- Returns:
- The operation result
- See Also:
-
- /v1/session/node/:node endpoint
ConsulClient.listNodeSessions(String)
-
listNodeSessionsAndForget
Returns the active sessions for a given nodeUnlike the bare Vert.x variant, this method ignores the
SessionListresult or any failure.- Parameters:
nodeId- the ID of node- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/session/node/:node endpoint
ConsulClient.listNodeSessions(String)
-
listNodeSessionsWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.SessionList> listNodeSessionsWithOptions(String nodeId, io.vertx.ext.consul.BlockingQueryOptions options) Returns the active sessions for a given node This is blocking query unlikelistNodeSessions(String)Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
nodeId- the ID of nodeoptions- the blocking options- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/session/node/:node endpoint
ConsulClient.listNodeSessionsWithOptions(String, BlockingQueryOptions)
-
listNodeSessionsWithOptionsAndAwait
public io.vertx.ext.consul.SessionList listNodeSessionsWithOptionsAndAwait(String nodeId, io.vertx.ext.consul.BlockingQueryOptions options) Returns the active sessions for a given node This is blocking query unlikelistNodeSessions(String)Unlike the bare Vert.x variant, this method returns a
SessionList. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
nodeId- the ID of nodeoptions- the blocking options- Returns:
- The operation result
- See Also:
-
- /v1/session/node/:node endpoint
ConsulClient.listNodeSessionsWithOptions(String, BlockingQueryOptions)
-
listNodeSessionsWithOptionsAndForget
public ConsulClient listNodeSessionsWithOptionsAndForget(String nodeId, io.vertx.ext.consul.BlockingQueryOptions options) Returns the active sessions for a given node This is blocking query unlikelistNodeSessions(String)Unlike the bare Vert.x variant, this method ignores the
SessionListresult or any failure.- Parameters:
nodeId- the ID of nodeoptions- the blocking options- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/session/node/:node endpoint
ConsulClient.listNodeSessionsWithOptions(String, BlockingQueryOptions)
-
destroySession
Destroys the given sessionUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
id- the ID of session- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/session/destroy/:uuid endpoint
ConsulClient.destroySession(String)
-
destroySessionAndAwait
Destroys the given sessionUnlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
id- the ID of session- See Also:
-
- /v1/session/destroy/:uuid endpoint
ConsulClient.destroySession(String)
-
destroySessionAndForget
Destroys the given sessionUnlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
id- the ID of session- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/session/destroy/:uuid endpoint
ConsulClient.destroySession(String)
-
createPreparedQuery
@CheckReturnValue public io.smallrye.mutiny.Uni<String> createPreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition) Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
definition- definition of the prepare query- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/query endpoint
ConsulClient.createPreparedQuery(PreparedQueryDefinition)
-
createPreparedQueryAndAwait
Unlike the bare Vert.x variant, this method returns a
String. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
definition- definition of the prepare query- Returns:
- The operation result
- See Also:
-
- /v1/query endpoint
ConsulClient.createPreparedQuery(PreparedQueryDefinition)
-
createPreparedQueryAndForget
public ConsulClient createPreparedQueryAndForget(io.vertx.ext.consul.PreparedQueryDefinition definition) Unlike the bare Vert.x variant, this method ignores the
Stringresult or any failure.- Parameters:
definition- definition of the prepare query- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/query endpoint
ConsulClient.createPreparedQuery(PreparedQueryDefinition)
-
getPreparedQuery
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.PreparedQueryDefinition> getPreparedQuery(String id) Returns an existing prepared queryUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
id- the id of the query to read- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/query/:uuid endpoint
ConsulClient.getPreparedQuery(String)
-
getPreparedQueryAndAwait
Returns an existing prepared queryUnlike the bare Vert.x variant, this method returns a
PreparedQueryDefinition. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
id- the id of the query to read- Returns:
- The operation result
- See Also:
-
- /v1/query/:uuid endpoint
ConsulClient.getPreparedQuery(String)
-
getPreparedQueryAndForget
Returns an existing prepared queryUnlike the bare Vert.x variant, this method ignores the
PreparedQueryDefinitionresult or any failure.- Parameters:
id- the id of the query to read- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/query/:uuid endpoint
ConsulClient.getPreparedQuery(String)
-
getAllPreparedQueries
@CheckReturnValue public io.smallrye.mutiny.Uni<List<io.vertx.ext.consul.PreparedQueryDefinition>> getAllPreparedQueries()Returns a list of all prepared queries.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/query endpoint
ConsulClient.getAllPreparedQueries()
-
getAllPreparedQueriesAndAwait
Returns a list of all prepared queries.Unlike the bare Vert.x variant, this method returns a
List<io.vertx.ext.consul.PreparedQueryDefinition>. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
- /v1/query endpoint
ConsulClient.getAllPreparedQueries()
-
getAllPreparedQueriesAndForget
Returns a list of all prepared queries.Unlike the bare Vert.x variant, this method ignores the
List<io.vertx.ext.consul.PreparedQueryDefinition>result or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/query endpoint
ConsulClient.getAllPreparedQueries()
-
updatePreparedQuery
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> updatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition) Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
definition- definition of the prepare query- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/query/:uuid endpoint
ConsulClient.updatePreparedQuery(PreparedQueryDefinition)
-
updatePreparedQueryAndAwait
public void updatePreparedQueryAndAwait(io.vertx.ext.consul.PreparedQueryDefinition definition) Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
definition- definition of the prepare query- See Also:
-
- /v1/query/:uuid endpoint
ConsulClient.updatePreparedQuery(PreparedQueryDefinition)
-
updatePreparedQueryAndForget
public ConsulClient updatePreparedQueryAndForget(io.vertx.ext.consul.PreparedQueryDefinition definition) Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
definition- definition of the prepare query- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/query/:uuid endpoint
ConsulClient.updatePreparedQuery(PreparedQueryDefinition)
-
deletePreparedQuery
Deletes an existing prepared queryUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
id- the id of the query to delete- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/query/:uuid endpoint
ConsulClient.deletePreparedQuery(String)
-
deletePreparedQueryAndAwait
Deletes an existing prepared queryUnlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
id- the id of the query to delete- See Also:
-
- /v1/query/:uuid endpoint
ConsulClient.deletePreparedQuery(String)
-
deletePreparedQueryAndForget
Deletes an existing prepared queryUnlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
id- the id of the query to delete- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/query/:uuid endpoint
ConsulClient.deletePreparedQuery(String)
-
executePreparedQuery
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.PreparedQueryExecuteResponse> executePreparedQuery(String query) Executes an existing prepared query.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
query- the ID of the query to execute. This can also be the name of an existing prepared query, or a name that matches a prefix name for a prepared query template.- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/query/:uuid/execute endpoint
ConsulClient.executePreparedQuery(String)
-
executePreparedQueryAndAwait
Executes an existing prepared query.Unlike the bare Vert.x variant, this method returns a
PreparedQueryExecuteResponse. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
query- the ID of the query to execute. This can also be the name of an existing prepared query, or a name that matches a prefix name for a prepared query template.- Returns:
- The operation result
- See Also:
-
- /v1/query/:uuid/execute endpoint
ConsulClient.executePreparedQuery(String)
-
executePreparedQueryAndForget
Executes an existing prepared query.Unlike the bare Vert.x variant, this method ignores the
PreparedQueryExecuteResponseresult or any failure.- Parameters:
query- the ID of the query to execute. This can also be the name of an existing prepared query, or a name that matches a prefix name for a prepared query template.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/query/:uuid/execute endpoint
ConsulClient.executePreparedQuery(String)
-
executePreparedQueryWithOptions
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.consul.PreparedQueryExecuteResponse> executePreparedQueryWithOptions(String query, io.vertx.ext.consul.PreparedQueryExecuteOptions options) Executes an existing prepared query.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
query- the ID of the query to execute. This can also be the name of an existing prepared query, or a name that matches a prefix name for a prepared query template.options- the options used to execute prepared query- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/query/:uuid/execute endpoint
ConsulClient.executePreparedQueryWithOptions(String, PreparedQueryExecuteOptions)
-
executePreparedQueryWithOptionsAndAwait
public io.vertx.ext.consul.PreparedQueryExecuteResponse executePreparedQueryWithOptionsAndAwait(String query, io.vertx.ext.consul.PreparedQueryExecuteOptions options) Executes an existing prepared query.Unlike the bare Vert.x variant, this method returns a
PreparedQueryExecuteResponse. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
query- the ID of the query to execute. This can also be the name of an existing prepared query, or a name that matches a prefix name for a prepared query template.options- the options used to execute prepared query- Returns:
- The operation result
- See Also:
-
- /v1/query/:uuid/execute endpoint
ConsulClient.executePreparedQueryWithOptions(String, PreparedQueryExecuteOptions)
-
executePreparedQueryWithOptionsAndForget
public ConsulClient executePreparedQueryWithOptionsAndForget(String query, io.vertx.ext.consul.PreparedQueryExecuteOptions options) Executes an existing prepared query.Unlike the bare Vert.x variant, this method ignores the
PreparedQueryExecuteResponseresult or any failure.- Parameters:
query- the ID of the query to execute. This can also be the name of an existing prepared query, or a name that matches a prefix name for a prepared query template.options- the options used to execute prepared query- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/query/:uuid/execute endpoint
ConsulClient.executePreparedQueryWithOptions(String, PreparedQueryExecuteOptions)
-
registerCatalogService
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> registerCatalogService(io.vertx.ext.consul.Node nodeOptions, io.vertx.ext.consul.ServiceOptions serviceOptions) Register node with external serviceUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
nodeOptions- the options of new nodeserviceOptions- the options of new service- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/catalog/register endpoint
ConsulClient.registerCatalogService(Node, ServiceOptions)
-
registerCatalogServiceAndAwait
public void registerCatalogServiceAndAwait(io.vertx.ext.consul.Node nodeOptions, io.vertx.ext.consul.ServiceOptions serviceOptions) Register node with external serviceUnlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
nodeOptions- the options of new nodeserviceOptions- the options of new service- See Also:
-
- /v1/catalog/register endpoint
ConsulClient.registerCatalogService(Node, ServiceOptions)
-
registerCatalogServiceAndForget
public ConsulClient registerCatalogServiceAndForget(io.vertx.ext.consul.Node nodeOptions, io.vertx.ext.consul.ServiceOptions serviceOptions) Register node with external serviceUnlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
nodeOptions- the options of new nodeserviceOptions- the options of new service- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/catalog/register endpoint
ConsulClient.registerCatalogService(Node, ServiceOptions)
-
deregisterCatalogService
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> deregisterCatalogService(String nodeId, String serviceId) Deregister entities from the node or deregister the node itself.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
nodeId- the ID of nodeserviceId- the ID of the service to de-registered; if it is null, the node itself will be de-registered (as well as the entities that belongs to that node)- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
- /v1/catalog/deregister endpoint
ConsulClient.deregisterCatalogService(String, String)
-
deregisterCatalogServiceAndAwait
Deregister entities from the node or deregister the node itself.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
nodeId- the ID of nodeserviceId- the ID of the service to de-registered; if it is null, the node itself will be de-registered (as well as the entities that belongs to that node)- See Also:
-
- /v1/catalog/deregister endpoint
ConsulClient.deregisterCatalogService(String, String)
-
deregisterCatalogServiceAndForget
Deregister entities from the node or deregister the node itself.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
nodeId- the ID of nodeserviceId- the ID of the service to de-registered; if it is null, the node itself will be de-registered (as well as the entities that belongs to that node)- Returns:
- The current instance to chain operations if needed.
- See Also:
-
- /v1/catalog/deregister endpoint
ConsulClient.deregisterCatalogService(String, String)
-
create
Create a Consul client with default options.- Parameters:
vertx- the Vert.x instance- Returns:
- the client
-
create
Create a Consul client.- Parameters:
vertx- the Vert.x instanceoptions- the options- Returns:
- the client
-
close
public void close()Close the client and release its resources -
newInstance
Creates a new instance of theConsulClient. -
hashCode
public int hashCode() -
equals
-
toString
-