public class ConsulClient extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<ConsulClient> |
__TYPE_ARG |
Constructor and Description |
---|
ConsulClient(io.vertx.ext.consul.ConsulClient delegate) |
ConsulClient(Object delegate) |
Modifier and Type | Method and Description |
---|---|
ConsulClient |
agentInfo()
Returns the configuration and member information of the local agent
|
ConsulClient |
agentInfo(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Returns the configuration and member information of the local agent
|
ConsulClient |
catalogDatacenters()
Return all the datacenters that are known by the Consul server
|
ConsulClient |
catalogDatacenters(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<String>>> resultHandler)
Return all the datacenters that are known by the Consul server
|
ConsulClient |
catalogNodes()
Returns the nodes registered in a datacenter
|
ConsulClient |
catalogNodes(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.NodeList>> resultHandler)
Returns the nodes registered in a datacenter
|
ConsulClient |
catalogNodeServices(String node)
Returns the node's registered services
|
ConsulClient |
catalogNodeServices(String node,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>> resultHandler)
Returns the node's registered services
|
ConsulClient |
catalogNodeServicesWithOptions(String node,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns the node's registered services
This is blocking query unlike
catalogNodeServices(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>) |
ConsulClient |
catalogNodeServicesWithOptions(String node,
io.vertx.ext.consul.BlockingQueryOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>> resultHandler)
Returns the node's registered services
This is blocking query unlike
catalogNodeServices(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>) |
ConsulClient |
catalogNodesWithOptions(io.vertx.ext.consul.NodeQueryOptions options)
Returns the nodes registered in a datacenter
|
ConsulClient |
catalogNodesWithOptions(io.vertx.ext.consul.NodeQueryOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.NodeList>> resultHandler)
Returns the nodes registered in a datacenter
|
ConsulClient |
catalogServiceNodes(String service)
Returns the nodes providing a service
|
ConsulClient |
catalogServiceNodes(String service,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>> resultHandler)
Returns the nodes providing a service
|
ConsulClient |
catalogServiceNodesWithOptions(String service,
io.vertx.ext.consul.ServiceQueryOptions options)
Returns the nodes providing a service
|
ConsulClient |
catalogServiceNodesWithOptions(String service,
io.vertx.ext.consul.ServiceQueryOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>> resultHandler)
Returns the nodes providing a service
|
ConsulClient |
catalogServices()
Returns the services registered in a datacenter
|
ConsulClient |
catalogServices(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>> resultHandler)
Returns the services registered in a datacenter
|
ConsulClient |
catalogServicesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
Returns the services registered in a datacenter
This is blocking query unlike
catalogServices(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>) |
ConsulClient |
catalogServicesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>> resultHandler)
Returns the services registered in a datacenter
This is blocking query unlike
catalogServices(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>) |
ConsulClient |
cloneAclToken(String id)
Clone Acl token
|
ConsulClient |
cloneAclToken(String id,
io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> idHandler)
Clone Acl token
|
void |
close()
Close the client and release its resources
|
ConsulClient |
coordinateDatacenters()
Returns the WAN network coordinates for all Consul servers, organized by DCs
|
ConsulClient |
coordinateDatacenters(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.ext.consul.DcCoordinates>>> resultHandler)
Returns the WAN network coordinates for all Consul servers, organized by DCs
|
ConsulClient |
coordinateNodes()
Returns the LAN network coordinates for all nodes in a given DC
|
ConsulClient |
coordinateNodes(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CoordinateList>> resultHandler)
Returns the LAN network coordinates for all nodes in a given DC
|
ConsulClient |
coordinateNodesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
Returns the LAN network coordinates for all nodes in a given DC
This is blocking query unlike
coordinateNodes(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CoordinateList>>) |
ConsulClient |
coordinateNodesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CoordinateList>> resultHandler)
Returns the LAN network coordinates for all nodes in a given DC
This is blocking query unlike
coordinateNodes(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CoordinateList>>) |
static ConsulClient |
create(Vertx vertx)
Create a Consul client with default options.
|
static ConsulClient |
create(Vertx vertx,
io.vertx.ext.consul.ConsulClientOptions options)
Create a Consul client.
|
ConsulClient |
createAclToken(io.vertx.ext.consul.AclToken token)
Create new Acl token
|
ConsulClient |
createAclToken(io.vertx.ext.consul.AclToken token,
io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> idHandler)
Create new Acl token
|
ConsulClient |
createPreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition) |
ConsulClient |
createPreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition,
io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> resultHandler) |
ConsulClient |
createSession()
Initialize a new session
|
ConsulClient |
createSession(io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> idHandler)
Initialize a new session
|
ConsulClient |
createSessionWithOptions(io.vertx.ext.consul.SessionOptions options)
Initialize a new session
|
ConsulClient |
createSessionWithOptions(io.vertx.ext.consul.SessionOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> idHandler)
Initialize a new session
|
ConsulClient |
deletePreparedQuery(String id)
Deletes an existing prepared query
|
ConsulClient |
deletePreparedQuery(String id,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Deletes an existing prepared query
|
ConsulClient |
deleteValue(String key)
Remove the key/value pair that corresponding to the specified key
|
ConsulClient |
deleteValue(String key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Remove the key/value pair that corresponding to the specified key
|
ConsulClient |
deleteValues(String keyPrefix)
Removes all the key/value pair that corresponding to the specified key prefix
|
ConsulClient |
deleteValues(String keyPrefix,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Removes all the key/value pair that corresponding to the specified key prefix
|
ConsulClient |
deregisterCheck(String checkId)
Remove a check from the local agent.
|
ConsulClient |
deregisterCheck(String checkId,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Remove a check from the local agent.
|
ConsulClient |
deregisterService(String id)
Remove a service from the local agent.
|
ConsulClient |
deregisterService(String id,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Remove a service from the local agent.
|
ConsulClient |
destroyAclToken(String id)
Destroy Acl token
|
ConsulClient |
destroyAclToken(String id,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Destroy Acl token
|
ConsulClient |
destroySession(String id)
Destroys the given session
|
ConsulClient |
destroySession(String id,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Destroys the given session
|
boolean |
equals(Object o) |
ConsulClient |
executePreparedQuery(String query)
Executes an existing prepared query.
|
ConsulClient |
executePreparedQuery(String query,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.PreparedQueryExecuteResponse>> resultHandler)
Executes an existing prepared query.
|
ConsulClient |
executePreparedQueryWithOptions(String query,
io.vertx.ext.consul.PreparedQueryExecuteOptions options)
Executes an existing prepared query.
|
ConsulClient |
executePreparedQueryWithOptions(String query,
io.vertx.ext.consul.PreparedQueryExecuteOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.PreparedQueryExecuteResponse>> resultHandler)
Executes an existing prepared query.
|
ConsulClient |
failCheck(String checkId)
Set status of the check to "critical".
|
ConsulClient |
failCheck(String checkId,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Set status of the check to "critical".
|
ConsulClient |
failCheckWithNote(String checkId,
String note)
Set status of the check to "critical".
|
ConsulClient |
failCheckWithNote(String checkId,
String note,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Set status of the check to "critical".
|
ConsulClient |
fireEvent(String name)
Fires a new user event
|
ConsulClient |
fireEvent(String name,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Event>> resultHandler)
Fires a new user event
|
ConsulClient |
fireEventWithOptions(String name,
io.vertx.ext.consul.EventOptions options)
Fires a new user event
|
ConsulClient |
fireEventWithOptions(String name,
io.vertx.ext.consul.EventOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Event>> resultHandler)
Fires a new user event
|
ConsulClient |
getAllPreparedQueries()
Returns a list of all prepared queries.
|
ConsulClient |
getAllPreparedQueries(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.ext.consul.PreparedQueryDefinition>>> resultHandler)
Returns a list of all prepared queries.
|
io.vertx.ext.consul.ConsulClient |
getDelegate() |
ConsulClient |
getKeys(String keyPrefix)
Returns the list of keys that corresponding to the specified key prefix.
|
ConsulClient |
getKeys(String keyPrefix,
io.vertx.core.Handler<io.vertx.core.AsyncResult<List<String>>> resultHandler)
Returns the list of keys that corresponding to the specified key prefix.
|
ConsulClient |
getKeysWithOptions(String keyPrefix,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns the list of keys that corresponding to the specified key prefix.
|
ConsulClient |
getKeysWithOptions(String keyPrefix,
io.vertx.ext.consul.BlockingQueryOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<List<String>>> resultHandler)
Returns the list of keys that corresponding to the specified key prefix.
|
ConsulClient |
getPreparedQuery(String id)
Returns an existing prepared query
|
ConsulClient |
getPreparedQuery(String id,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.PreparedQueryDefinition>> resultHandler)
Returns an existing prepared query
|
ConsulClient |
getValue(String key)
Returns key/value pair that corresponding to the specified key.
|
ConsulClient |
getValue(String key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValue>> resultHandler)
Returns key/value pair that corresponding to the specified key.
|
ConsulClient |
getValues(String keyPrefix)
Returns the list of key/value pairs that corresponding to the specified key prefix.
|
ConsulClient |
getValues(String keyPrefix,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValueList>> resultHandler)
Returns the list of key/value pairs that corresponding to the specified key prefix.
|
ConsulClient |
getValuesWithOptions(String keyPrefix,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns the list of key/value pairs that corresponding to the specified key prefix.
|
ConsulClient |
getValuesWithOptions(String keyPrefix,
io.vertx.ext.consul.BlockingQueryOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValueList>> resultHandler)
Returns the list of key/value pairs that corresponding to the specified key prefix.
|
ConsulClient |
getValueWithOptions(String key,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns key/value pair that corresponding to the specified key.
|
ConsulClient |
getValueWithOptions(String key,
io.vertx.ext.consul.BlockingQueryOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValue>> resultHandler)
Returns key/value pair that corresponding to the specified key.
|
int |
hashCode() |
ConsulClient |
healthChecks(String service)
Returns the checks associated with the service
|
ConsulClient |
healthChecks(String service,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList>> resultHandler)
Returns the checks associated with the service
|
ConsulClient |
healthChecksWithOptions(String service,
io.vertx.ext.consul.CheckQueryOptions options)
Returns the checks associated with the service
|
ConsulClient |
healthChecksWithOptions(String service,
io.vertx.ext.consul.CheckQueryOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList>> resultHandler)
Returns the checks associated with the service
|
ConsulClient |
healthServiceNodes(String service,
boolean passing)
Returns the nodes providing the service.
|
ConsulClient |
healthServiceNodes(String service,
boolean passing,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceEntryList>> resultHandler)
Returns the nodes providing the service.
|
ConsulClient |
healthServiceNodesWithOptions(String service,
boolean passing,
io.vertx.ext.consul.ServiceQueryOptions options)
Returns the nodes providing the service.
|
ConsulClient |
healthServiceNodesWithOptions(String service,
boolean passing,
io.vertx.ext.consul.ServiceQueryOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceEntryList>> resultHandler)
Returns the nodes providing the service.
|
ConsulClient |
healthState(io.vertx.ext.consul.HealthState healthState)
Returns the checks in the specified status
|
ConsulClient |
healthState(io.vertx.ext.consul.HealthState healthState,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList>> resultHandler)
Returns the checks in the specified status
|
ConsulClient |
healthStateWithOptions(io.vertx.ext.consul.HealthState healthState,
io.vertx.ext.consul.CheckQueryOptions options)
Returns the checks in the specified status
|
ConsulClient |
healthStateWithOptions(io.vertx.ext.consul.HealthState healthState,
io.vertx.ext.consul.CheckQueryOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList>> resultHandler)
Returns the checks in the specified status
|
ConsulClient |
infoAclToken(String id)
Get info of Acl token
|
ConsulClient |
infoAclToken(String id,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.AclToken>> tokenHandler)
Get info of Acl token
|
ConsulClient |
infoSession(String id)
Returns the requested session information
|
ConsulClient |
infoSession(String id,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>> resultHandler)
Returns the requested session information
|
ConsulClient |
infoSessionWithOptions(String id,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns the requested session information
This is blocking query unlike
infoSession(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>>) |
ConsulClient |
infoSessionWithOptions(String id,
io.vertx.ext.consul.BlockingQueryOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>> resultHandler)
Returns the requested session information
This is blocking query unlike
infoSession(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>>) |
ConsulClient |
leaderStatus()
Get the Raft leader for the datacenter in which the agent is running.
|
ConsulClient |
leaderStatus(io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> resultHandler)
Get the Raft leader for the datacenter in which the agent is running.
|
ConsulClient |
listAclTokens()
Get list of Acl token
|
ConsulClient |
listAclTokens(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.ext.consul.AclToken>>> resultHandler)
Get list of Acl token
|
ConsulClient |
listEvents()
Returns the most recent events known by the agent
|
ConsulClient |
listEvents(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.EventList>> resultHandler)
Returns the most recent events known by the agent
|
ConsulClient |
listEventsWithOptions(io.vertx.ext.consul.EventListOptions options)
Returns the most recent events known by the agent.
|
ConsulClient |
listEventsWithOptions(io.vertx.ext.consul.EventListOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.EventList>> resultHandler)
Returns the most recent events known by the agent.
|
ConsulClient |
listNodeSessions(String nodeId)
Returns the active sessions for a given node
|
ConsulClient |
listNodeSessions(String nodeId,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>> resultHandler)
Returns the active sessions for a given node
|
ConsulClient |
listNodeSessionsWithOptions(String nodeId,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns the active sessions for a given node
This is blocking query unlike
listNodeSessions(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>) |
ConsulClient |
listNodeSessionsWithOptions(String nodeId,
io.vertx.ext.consul.BlockingQueryOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>> resultHandler)
Returns the active sessions for a given node
This is blocking query unlike
listNodeSessions(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>) |
ConsulClient |
listSessions()
Returns the active sessions
|
ConsulClient |
listSessions(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>> resultHandler)
Returns the active sessions
|
ConsulClient |
listSessionsWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
Returns the active sessions
This is blocking query unlike
listSessions(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>) |
ConsulClient |
listSessionsWithOptions(io.vertx.ext.consul.BlockingQueryOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>> resultHandler)
Returns the active sessions
This is blocking query unlike
listSessions(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>) |
ConsulClient |
localChecks()
Return all the checks that are registered with the local agent.
|
ConsulClient |
localChecks(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.ext.consul.Check>>> resultHandler)
Return all the checks that are registered with the local agent.
|
ConsulClient |
localServices()
Returns list of services registered with the local agent.
|
ConsulClient |
localServices(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.ext.consul.Service>>> resultHandler)
Returns list of services registered with the local agent.
|
ConsulClient |
maintenanceService(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions)
Places a given service into "maintenance mode"
|
ConsulClient |
maintenanceService(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Places a given service into "maintenance mode"
|
static ConsulClient |
newInstance(io.vertx.ext.consul.ConsulClient arg) |
ConsulClient |
passCheck(String checkId)
Set status of the check to "passing".
|
ConsulClient |
passCheck(String checkId,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Set status of the check to "passing".
|
ConsulClient |
passCheckWithNote(String checkId,
String note)
Set status of the check to "passing".
|
ConsulClient |
passCheckWithNote(String checkId,
String note,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Set status of the check to "passing".
|
ConsulClient |
peersStatus()
Retrieves the Raft peers for the datacenter in which the the agent is running.
|
ConsulClient |
peersStatus(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<String>>> resultHandler)
Retrieves the Raft peers for the datacenter in which the the agent is running.
|
ConsulClient |
putValue(String key,
String value)
Adds specified key/value pair
|
ConsulClient |
putValue(String key,
String value,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> resultHandler)
Adds specified key/value pair
|
ConsulClient |
putValueWithOptions(String key,
String value,
io.vertx.ext.consul.KeyValueOptions options) |
ConsulClient |
putValueWithOptions(String key,
String value,
io.vertx.ext.consul.KeyValueOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> resultHandler) |
ConsulClient |
registerCheck(io.vertx.ext.consul.CheckOptions checkOptions)
Add a new check to the local agent.
|
ConsulClient |
registerCheck(io.vertx.ext.consul.CheckOptions checkOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Add a new check to the local agent.
|
ConsulClient |
registerService(io.vertx.ext.consul.ServiceOptions serviceOptions)
Adds a new service, with an optional health check, to the local agent.
|
ConsulClient |
registerService(io.vertx.ext.consul.ServiceOptions serviceOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Adds a new service, with an optional health check, to the local agent.
|
ConsulClient |
renewSession(String id)
Renews the given session.
|
ConsulClient |
renewSession(String id,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>> resultHandler)
Renews the given session.
|
rx.Single<io.vertx.core.json.JsonObject> |
rxAgentInfo()
Returns the configuration and member information of the local agent
|
rx.Single<List<String>> |
rxCatalogDatacenters()
Return all the datacenters that are known by the Consul server
|
rx.Single<io.vertx.ext.consul.NodeList> |
rxCatalogNodes()
Returns the nodes registered in a datacenter
|
rx.Single<io.vertx.ext.consul.ServiceList> |
rxCatalogNodeServices(String node)
Returns the node's registered services
|
rx.Single<io.vertx.ext.consul.ServiceList> |
rxCatalogNodeServicesWithOptions(String node,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns the node's registered services
This is blocking query unlike
catalogNodeServices(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>) |
rx.Single<io.vertx.ext.consul.NodeList> |
rxCatalogNodesWithOptions(io.vertx.ext.consul.NodeQueryOptions options)
Returns the nodes registered in a datacenter
|
rx.Single<io.vertx.ext.consul.ServiceList> |
rxCatalogServiceNodes(String service)
Returns the nodes providing a service
|
rx.Single<io.vertx.ext.consul.ServiceList> |
rxCatalogServiceNodesWithOptions(String service,
io.vertx.ext.consul.ServiceQueryOptions options)
Returns the nodes providing a service
|
rx.Single<io.vertx.ext.consul.ServiceList> |
rxCatalogServices()
Returns the services registered in a datacenter
|
rx.Single<io.vertx.ext.consul.ServiceList> |
rxCatalogServicesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
Returns the services registered in a datacenter
This is blocking query unlike
catalogServices(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>) |
rx.Single<String> |
rxCloneAclToken(String id)
Clone Acl token
|
rx.Single<List<io.vertx.ext.consul.DcCoordinates>> |
rxCoordinateDatacenters()
Returns the WAN network coordinates for all Consul servers, organized by DCs
|
rx.Single<io.vertx.ext.consul.CoordinateList> |
rxCoordinateNodes()
Returns the LAN network coordinates for all nodes in a given DC
|
rx.Single<io.vertx.ext.consul.CoordinateList> |
rxCoordinateNodesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
Returns the LAN network coordinates for all nodes in a given DC
This is blocking query unlike
coordinateNodes(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CoordinateList>>) |
rx.Single<String> |
rxCreateAclToken(io.vertx.ext.consul.AclToken token)
Create new Acl token
|
rx.Single<String> |
rxCreatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition) |
rx.Single<String> |
rxCreateSession()
Initialize a new session
|
rx.Single<String> |
rxCreateSessionWithOptions(io.vertx.ext.consul.SessionOptions options)
Initialize a new session
|
rx.Single<Void> |
rxDeletePreparedQuery(String id)
Deletes an existing prepared query
|
rx.Single<Void> |
rxDeleteValue(String key)
Remove the key/value pair that corresponding to the specified key
|
rx.Single<Void> |
rxDeleteValues(String keyPrefix)
Removes all the key/value pair that corresponding to the specified key prefix
|
rx.Single<Void> |
rxDeregisterCheck(String checkId)
Remove a check from the local agent.
|
rx.Single<Void> |
rxDeregisterService(String id)
Remove a service from the local agent.
|
rx.Single<Void> |
rxDestroyAclToken(String id)
Destroy Acl token
|
rx.Single<Void> |
rxDestroySession(String id)
Destroys the given session
|
rx.Single<io.vertx.ext.consul.PreparedQueryExecuteResponse> |
rxExecutePreparedQuery(String query)
Executes an existing prepared query.
|
rx.Single<io.vertx.ext.consul.PreparedQueryExecuteResponse> |
rxExecutePreparedQueryWithOptions(String query,
io.vertx.ext.consul.PreparedQueryExecuteOptions options)
Executes an existing prepared query.
|
rx.Single<Void> |
rxFailCheck(String checkId)
Set status of the check to "critical".
|
rx.Single<Void> |
rxFailCheckWithNote(String checkId,
String note)
Set status of the check to "critical".
|
rx.Single<io.vertx.ext.consul.Event> |
rxFireEvent(String name)
Fires a new user event
|
rx.Single<io.vertx.ext.consul.Event> |
rxFireEventWithOptions(String name,
io.vertx.ext.consul.EventOptions options)
Fires a new user event
|
rx.Single<List<io.vertx.ext.consul.PreparedQueryDefinition>> |
rxGetAllPreparedQueries()
Returns a list of all prepared queries.
|
rx.Single<List<String>> |
rxGetKeys(String keyPrefix)
Returns the list of keys that corresponding to the specified key prefix.
|
rx.Single<List<String>> |
rxGetKeysWithOptions(String keyPrefix,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns the list of keys that corresponding to the specified key prefix.
|
rx.Single<io.vertx.ext.consul.PreparedQueryDefinition> |
rxGetPreparedQuery(String id)
Returns an existing prepared query
|
rx.Single<io.vertx.ext.consul.KeyValue> |
rxGetValue(String key)
Returns key/value pair that corresponding to the specified key.
|
rx.Single<io.vertx.ext.consul.KeyValueList> |
rxGetValues(String keyPrefix)
Returns the list of key/value pairs that corresponding to the specified key prefix.
|
rx.Single<io.vertx.ext.consul.KeyValueList> |
rxGetValuesWithOptions(String keyPrefix,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns the list of key/value pairs that corresponding to the specified key prefix.
|
rx.Single<io.vertx.ext.consul.KeyValue> |
rxGetValueWithOptions(String key,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns key/value pair that corresponding to the specified key.
|
rx.Single<io.vertx.ext.consul.CheckList> |
rxHealthChecks(String service)
Returns the checks associated with the service
|
rx.Single<io.vertx.ext.consul.CheckList> |
rxHealthChecksWithOptions(String service,
io.vertx.ext.consul.CheckQueryOptions options)
Returns the checks associated with the service
|
rx.Single<io.vertx.ext.consul.ServiceEntryList> |
rxHealthServiceNodes(String service,
boolean passing)
Returns the nodes providing the service.
|
rx.Single<io.vertx.ext.consul.ServiceEntryList> |
rxHealthServiceNodesWithOptions(String service,
boolean passing,
io.vertx.ext.consul.ServiceQueryOptions options)
Returns the nodes providing the service.
|
rx.Single<io.vertx.ext.consul.CheckList> |
rxHealthState(io.vertx.ext.consul.HealthState healthState)
Returns the checks in the specified status
|
rx.Single<io.vertx.ext.consul.CheckList> |
rxHealthStateWithOptions(io.vertx.ext.consul.HealthState healthState,
io.vertx.ext.consul.CheckQueryOptions options)
Returns the checks in the specified status
|
rx.Single<io.vertx.ext.consul.AclToken> |
rxInfoAclToken(String id)
Get info of Acl token
|
rx.Single<io.vertx.ext.consul.Session> |
rxInfoSession(String id)
Returns the requested session information
|
rx.Single<io.vertx.ext.consul.Session> |
rxInfoSessionWithOptions(String id,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns the requested session information
This is blocking query unlike
infoSession(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>>) |
rx.Single<String> |
rxLeaderStatus()
Get the Raft leader for the datacenter in which the agent is running.
|
rx.Single<List<io.vertx.ext.consul.AclToken>> |
rxListAclTokens()
Get list of Acl token
|
rx.Single<io.vertx.ext.consul.EventList> |
rxListEvents()
Returns the most recent events known by the agent
|
rx.Single<io.vertx.ext.consul.EventList> |
rxListEventsWithOptions(io.vertx.ext.consul.EventListOptions options)
Returns the most recent events known by the agent.
|
rx.Single<io.vertx.ext.consul.SessionList> |
rxListNodeSessions(String nodeId)
Returns the active sessions for a given node
|
rx.Single<io.vertx.ext.consul.SessionList> |
rxListNodeSessionsWithOptions(String nodeId,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns the active sessions for a given node
This is blocking query unlike
listNodeSessions(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>) |
rx.Single<io.vertx.ext.consul.SessionList> |
rxListSessions()
Returns the active sessions
|
rx.Single<io.vertx.ext.consul.SessionList> |
rxListSessionsWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
Returns the active sessions
This is blocking query unlike
listSessions(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>) |
rx.Single<List<io.vertx.ext.consul.Check>> |
rxLocalChecks()
Return all the checks that are registered with the local agent.
|
rx.Single<List<io.vertx.ext.consul.Service>> |
rxLocalServices()
Returns list of services registered with the local agent.
|
rx.Single<Void> |
rxMaintenanceService(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions)
Places a given service into "maintenance mode"
|
rx.Single<Void> |
rxPassCheck(String checkId)
Set status of the check to "passing".
|
rx.Single<Void> |
rxPassCheckWithNote(String checkId,
String note)
Set status of the check to "passing".
|
rx.Single<List<String>> |
rxPeersStatus()
Retrieves the Raft peers for the datacenter in which the the agent is running.
|
rx.Single<Boolean> |
rxPutValue(String key,
String value)
Adds specified key/value pair
|
rx.Single<Boolean> |
rxPutValueWithOptions(String key,
String value,
io.vertx.ext.consul.KeyValueOptions options) |
rx.Single<Void> |
rxRegisterCheck(io.vertx.ext.consul.CheckOptions checkOptions)
Add a new check to the local agent.
|
rx.Single<Void> |
rxRegisterService(io.vertx.ext.consul.ServiceOptions serviceOptions)
Adds a new service, with an optional health check, to the local agent.
|
rx.Single<io.vertx.ext.consul.Session> |
rxRenewSession(String id)
Renews the given session.
|
rx.Single<io.vertx.ext.consul.TxnResponse> |
rxTransaction(io.vertx.ext.consul.TxnRequest request)
Manages multiple operations inside a single, atomic transaction.
|
rx.Single<String> |
rxUpdateAclToken(io.vertx.ext.consul.AclToken token)
Update Acl token
|
rx.Single<Void> |
rxUpdateCheck(String checkId,
io.vertx.ext.consul.CheckStatus status)
Set status of the check to given status.
|
rx.Single<Void> |
rxUpdateCheckWithNote(String checkId,
io.vertx.ext.consul.CheckStatus status,
String note)
Set status of the check to given status.
|
rx.Single<Void> |
rxUpdatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition) |
rx.Single<Void> |
rxWarnCheck(String checkId)
Set status of the check to "warning".
|
rx.Single<Void> |
rxWarnCheckWithNote(String checkId,
String note)
Set status of the check to "warning".
|
String |
toString() |
ConsulClient |
transaction(io.vertx.ext.consul.TxnRequest request)
Manages multiple operations inside a single, atomic transaction.
|
ConsulClient |
transaction(io.vertx.ext.consul.TxnRequest request,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.TxnResponse>> resultHandler)
Manages multiple operations inside a single, atomic transaction.
|
ConsulClient |
updateAclToken(io.vertx.ext.consul.AclToken token)
Update Acl token
|
ConsulClient |
updateAclToken(io.vertx.ext.consul.AclToken token,
io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> idHandler)
Update Acl token
|
ConsulClient |
updateCheck(String checkId,
io.vertx.ext.consul.CheckStatus status)
Set status of the check to given status.
|
ConsulClient |
updateCheck(String checkId,
io.vertx.ext.consul.CheckStatus status,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Set status of the check to given status.
|
ConsulClient |
updateCheckWithNote(String checkId,
io.vertx.ext.consul.CheckStatus status,
String note)
Set status of the check to given status.
|
ConsulClient |
updateCheckWithNote(String checkId,
io.vertx.ext.consul.CheckStatus status,
String note,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Set status of the check to given status.
|
ConsulClient |
updatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition) |
ConsulClient |
updatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler) |
ConsulClient |
warnCheck(String checkId)
Set status of the check to "warning".
|
ConsulClient |
warnCheck(String checkId,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Set status of the check to "warning".
|
ConsulClient |
warnCheckWithNote(String checkId,
String note)
Set status of the check to "warning".
|
ConsulClient |
warnCheckWithNote(String checkId,
String note,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Set status of the check to "warning".
|
public static final TypeArg<ConsulClient> __TYPE_ARG
public ConsulClient(io.vertx.ext.consul.ConsulClient delegate)
public ConsulClient(Object delegate)
public io.vertx.ext.consul.ConsulClient getDelegate()
public static ConsulClient create(Vertx vertx)
vertx
- the Vert.x instancepublic static ConsulClient create(Vertx vertx, io.vertx.ext.consul.ConsulClientOptions options)
vertx
- the Vert.x instanceoptions
- the optionspublic ConsulClient agentInfo(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
resultHandler
- will be provided with the configuration and member information of the local agentpublic ConsulClient agentInfo()
public rx.Single<io.vertx.core.json.JsonObject> rxAgentInfo()
public ConsulClient coordinateNodes(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CoordinateList>> resultHandler)
resultHandler
- will be provided with network coordinates of nodes in datacenterpublic ConsulClient coordinateNodes()
public rx.Single<io.vertx.ext.consul.CoordinateList> rxCoordinateNodes()
public ConsulClient coordinateNodesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CoordinateList>> resultHandler)
coordinateNodes(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CoordinateList>>)
options
- the blocking optionsresultHandler
- will be provided with network coordinates of nodes in datacenterpublic ConsulClient coordinateNodesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
coordinateNodes(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CoordinateList>>)
options
- the blocking optionspublic rx.Single<io.vertx.ext.consul.CoordinateList> rxCoordinateNodesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
coordinateNodes(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CoordinateList>>)
options
- the blocking optionspublic ConsulClient coordinateDatacenters(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.ext.consul.DcCoordinates>>> resultHandler)
resultHandler
- will be provided with network coordinates for all Consul serverspublic ConsulClient coordinateDatacenters()
public rx.Single<List<io.vertx.ext.consul.DcCoordinates>> rxCoordinateDatacenters()
public ConsulClient getKeys(String keyPrefix, io.vertx.core.Handler<io.vertx.core.AsyncResult<List<String>>> resultHandler)
keyPrefix
- the prefixresultHandler
- will be provided with keys listpublic ConsulClient getKeys(String keyPrefix)
keyPrefix
- the prefixpublic rx.Single<List<String>> rxGetKeys(String keyPrefix)
keyPrefix
- the prefixpublic ConsulClient getKeysWithOptions(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<List<String>>> resultHandler)
keyPrefix
- the prefixoptions
- the blocking optionsresultHandler
- will be provided with keys listpublic ConsulClient getKeysWithOptions(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options)
keyPrefix
- the prefixoptions
- the blocking optionspublic rx.Single<List<String>> rxGetKeysWithOptions(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options)
keyPrefix
- the prefixoptions
- the blocking optionspublic ConsulClient getValue(String key, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValue>> resultHandler)
KeyValue
object will be returned if no such key is found.key
- the keyresultHandler
- will be provided with key/value pairpublic ConsulClient getValue(String key)
KeyValue
object will be returned if no such key is found.key
- the keypublic rx.Single<io.vertx.ext.consul.KeyValue> rxGetValue(String key)
KeyValue
object will be returned if no such key is found.key
- the keypublic ConsulClient getValueWithOptions(String key, io.vertx.ext.consul.BlockingQueryOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValue>> resultHandler)
KeyValue
object will be returned if no such key is found.
This is blocking query unlike getValue(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValue>>)
key
- the keyoptions
- the blocking optionsresultHandler
- will be provided with key/value pairpublic ConsulClient getValueWithOptions(String key, io.vertx.ext.consul.BlockingQueryOptions options)
KeyValue
object will be returned if no such key is found.
This is blocking query unlike getValue(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValue>>)
key
- the keyoptions
- the blocking optionspublic rx.Single<io.vertx.ext.consul.KeyValue> rxGetValueWithOptions(String key, io.vertx.ext.consul.BlockingQueryOptions options)
KeyValue
object will be returned if no such key is found.
This is blocking query unlike getValue(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValue>>)
key
- the keyoptions
- the blocking optionspublic ConsulClient deleteValue(String key, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
key
- the keyresultHandler
- will be called on completepublic ConsulClient deleteValue(String key)
key
- the keypublic rx.Single<Void> rxDeleteValue(String key)
key
- the keypublic ConsulClient getValues(String keyPrefix, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValueList>> resultHandler)
KeyValueList
object will be returned if no such key prefix is found.keyPrefix
- the prefixresultHandler
- will be provided with list of key/value pairspublic ConsulClient getValues(String keyPrefix)
KeyValueList
object will be returned if no such key prefix is found.keyPrefix
- the prefixpublic rx.Single<io.vertx.ext.consul.KeyValueList> rxGetValues(String keyPrefix)
KeyValueList
object will be returned if no such key prefix is found.keyPrefix
- the prefixpublic ConsulClient getValuesWithOptions(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValueList>> resultHandler)
KeyValueList
object will be returned if no such key prefix is found.
This is blocking query unlike getValues(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValueList>>)
keyPrefix
- the prefixoptions
- the blocking optionsresultHandler
- will be provided with list of key/value pairspublic ConsulClient getValuesWithOptions(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options)
KeyValueList
object will be returned if no such key prefix is found.
This is blocking query unlike getValues(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValueList>>)
keyPrefix
- the prefixoptions
- the blocking optionspublic rx.Single<io.vertx.ext.consul.KeyValueList> rxGetValuesWithOptions(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options)
KeyValueList
object will be returned if no such key prefix is found.
This is blocking query unlike getValues(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValueList>>)
keyPrefix
- the prefixoptions
- the blocking optionspublic ConsulClient deleteValues(String keyPrefix, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
keyPrefix
- the prefixresultHandler
- will be called on completepublic ConsulClient deleteValues(String keyPrefix)
keyPrefix
- the prefixpublic rx.Single<Void> rxDeleteValues(String keyPrefix)
keyPrefix
- the prefixpublic ConsulClient putValue(String key, String value, io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> resultHandler)
key
- the keyvalue
- the valueresultHandler
- will be provided with success of operationpublic ConsulClient putValue(String key, String value)
key
- the keyvalue
- the valuepublic rx.Single<Boolean> rxPutValue(String key, String value)
key
- the keyvalue
- the valuepublic ConsulClient putValueWithOptions(String key, String value, io.vertx.ext.consul.KeyValueOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> resultHandler)
key
- the keyvalue
- the valueoptions
- options used to push pairresultHandler
- will be provided with success of operationpublic ConsulClient putValueWithOptions(String key, String value, io.vertx.ext.consul.KeyValueOptions options)
key
- the keyvalue
- the valueoptions
- options used to push pairpublic rx.Single<Boolean> rxPutValueWithOptions(String key, String value, io.vertx.ext.consul.KeyValueOptions options)
key
- the keyvalue
- the valueoptions
- options used to push pairpublic ConsulClient transaction(io.vertx.ext.consul.TxnRequest request, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.TxnResponse>> resultHandler)
request
- transaction requestresultHandler
- will be provided with result of transactionpublic ConsulClient transaction(io.vertx.ext.consul.TxnRequest request)
request
- transaction requestpublic rx.Single<io.vertx.ext.consul.TxnResponse> rxTransaction(io.vertx.ext.consul.TxnRequest request)
request
- transaction requestpublic ConsulClient createAclToken(io.vertx.ext.consul.AclToken token, io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> idHandler)
token
- properties of the tokenidHandler
- will be provided with ID of created tokenpublic ConsulClient createAclToken(io.vertx.ext.consul.AclToken token)
token
- properties of the tokenpublic rx.Single<String> rxCreateAclToken(io.vertx.ext.consul.AclToken token)
token
- properties of the tokenpublic ConsulClient updateAclToken(io.vertx.ext.consul.AclToken token, io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> idHandler)
token
- properties of the token to be updatedidHandler
- will be provided with ID of updatedpublic ConsulClient updateAclToken(io.vertx.ext.consul.AclToken token)
token
- properties of the token to be updatedpublic rx.Single<String> rxUpdateAclToken(io.vertx.ext.consul.AclToken token)
token
- properties of the token to be updatedpublic ConsulClient cloneAclToken(String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> idHandler)
id
- the ID of token to be clonedidHandler
- will be provided with ID of cloned tokenpublic ConsulClient cloneAclToken(String id)
id
- the ID of token to be clonedpublic rx.Single<String> rxCloneAclToken(String id)
id
- the ID of token to be clonedpublic ConsulClient listAclTokens(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.ext.consul.AclToken>>> resultHandler)
resultHandler
- will be provided with list of tokenspublic ConsulClient listAclTokens()
public rx.Single<List<io.vertx.ext.consul.AclToken>> rxListAclTokens()
public ConsulClient infoAclToken(String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.AclToken>> tokenHandler)
id
- the ID of tokentokenHandler
- will be provided with tokenpublic ConsulClient infoAclToken(String id)
id
- the ID of tokenpublic rx.Single<io.vertx.ext.consul.AclToken> rxInfoAclToken(String id)
id
- the ID of tokenpublic ConsulClient destroyAclToken(String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
id
- the ID of tokenresultHandler
- will be called on completepublic ConsulClient destroyAclToken(String id)
id
- the ID of tokenpublic rx.Single<Void> rxDestroyAclToken(String id)
id
- the ID of tokenpublic ConsulClient fireEvent(String name, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Event>> resultHandler)
name
- name of eventresultHandler
- will be provided with properties of eventpublic ConsulClient fireEvent(String name)
name
- name of eventpublic rx.Single<io.vertx.ext.consul.Event> rxFireEvent(String name)
name
- name of eventpublic ConsulClient fireEventWithOptions(String name, io.vertx.ext.consul.EventOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Event>> resultHandler)
name
- name of eventoptions
- options used to create eventresultHandler
- will be provided with properties of eventpublic ConsulClient fireEventWithOptions(String name, io.vertx.ext.consul.EventOptions options)
name
- name of eventoptions
- options used to create eventpublic rx.Single<io.vertx.ext.consul.Event> rxFireEventWithOptions(String name, io.vertx.ext.consul.EventOptions options)
name
- name of eventoptions
- options used to create eventpublic ConsulClient listEvents(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.EventList>> resultHandler)
resultHandler
- will be provided with list of eventspublic ConsulClient listEvents()
public rx.Single<io.vertx.ext.consul.EventList> rxListEvents()
public ConsulClient listEventsWithOptions(io.vertx.ext.consul.EventListOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.EventList>> resultHandler)
listEvents(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.EventList>>)
. 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 instead X-Consul-Index
maps 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.
options
- the blocking optionsresultHandler
- will be provided with list of eventspublic ConsulClient listEventsWithOptions(io.vertx.ext.consul.EventListOptions options)
listEvents(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.EventList>>)
. 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 instead X-Consul-Index
maps 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.
options
- the blocking optionspublic rx.Single<io.vertx.ext.consul.EventList> rxListEventsWithOptions(io.vertx.ext.consul.EventListOptions options)
listEvents(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.EventList>>)
. 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 instead X-Consul-Index
maps 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.
options
- the blocking optionspublic ConsulClient registerService(io.vertx.ext.consul.ServiceOptions serviceOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
serviceOptions
- the options of new serviceresultHandler
- will be called when completepublic ConsulClient registerService(io.vertx.ext.consul.ServiceOptions serviceOptions)
serviceOptions
- the options of new servicepublic rx.Single<Void> rxRegisterService(io.vertx.ext.consul.ServiceOptions serviceOptions)
serviceOptions
- the options of new servicepublic ConsulClient maintenanceService(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
maintenanceOptions
- the maintenance optionsresultHandler
- will be called when completepublic ConsulClient maintenanceService(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions)
maintenanceOptions
- the maintenance optionspublic rx.Single<Void> rxMaintenanceService(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions)
maintenanceOptions
- the maintenance optionspublic ConsulClient deregisterService(String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
id
- the ID of serviceresultHandler
- will be called when completepublic ConsulClient deregisterService(String id)
id
- the ID of servicepublic rx.Single<Void> rxDeregisterService(String id)
id
- the ID of servicepublic ConsulClient catalogServiceNodes(String service, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>> resultHandler)
service
- name of serviceresultHandler
- will be provided with list of nodes providing given servicepublic ConsulClient catalogServiceNodes(String service)
service
- name of servicepublic rx.Single<io.vertx.ext.consul.ServiceList> rxCatalogServiceNodes(String service)
service
- name of servicepublic ConsulClient catalogServiceNodesWithOptions(String service, io.vertx.ext.consul.ServiceQueryOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>> resultHandler)
service
- name of serviceoptions
- options used to request servicesresultHandler
- will be provided with list of nodes providing given servicepublic ConsulClient catalogServiceNodesWithOptions(String service, io.vertx.ext.consul.ServiceQueryOptions options)
service
- name of serviceoptions
- options used to request servicespublic rx.Single<io.vertx.ext.consul.ServiceList> rxCatalogServiceNodesWithOptions(String service, io.vertx.ext.consul.ServiceQueryOptions options)
service
- name of serviceoptions
- options used to request servicespublic ConsulClient catalogDatacenters(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<String>>> resultHandler)
resultHandler
- will be provided with list of datacenterspublic ConsulClient catalogDatacenters()
public rx.Single<List<String>> rxCatalogDatacenters()
public ConsulClient catalogNodes(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.NodeList>> resultHandler)
resultHandler
- will be provided with list of nodespublic ConsulClient catalogNodes()
public rx.Single<io.vertx.ext.consul.NodeList> rxCatalogNodes()
public ConsulClient catalogNodesWithOptions(io.vertx.ext.consul.NodeQueryOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.NodeList>> resultHandler)
options
- options used to request nodesresultHandler
- will be provided with list of nodespublic ConsulClient catalogNodesWithOptions(io.vertx.ext.consul.NodeQueryOptions options)
options
- options used to request nodespublic rx.Single<io.vertx.ext.consul.NodeList> rxCatalogNodesWithOptions(io.vertx.ext.consul.NodeQueryOptions options)
options
- options used to request nodespublic ConsulClient healthChecks(String service, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList>> resultHandler)
service
- the service nameresultHandler
- will be provided with list of checkspublic ConsulClient healthChecks(String service)
service
- the service namepublic rx.Single<io.vertx.ext.consul.CheckList> rxHealthChecks(String service)
service
- the service namepublic ConsulClient healthChecksWithOptions(String service, io.vertx.ext.consul.CheckQueryOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList>> resultHandler)
service
- the service nameoptions
- options used to request checksresultHandler
- will be provided with list of checkspublic ConsulClient healthChecksWithOptions(String service, io.vertx.ext.consul.CheckQueryOptions options)
service
- the service nameoptions
- options used to request checkspublic rx.Single<io.vertx.ext.consul.CheckList> rxHealthChecksWithOptions(String service, io.vertx.ext.consul.CheckQueryOptions options)
service
- the service nameoptions
- options used to request checkspublic ConsulClient healthState(io.vertx.ext.consul.HealthState healthState, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList>> resultHandler)
healthState
- the health stateresultHandler
- will be provided with list of checkspublic ConsulClient healthState(io.vertx.ext.consul.HealthState healthState)
healthState
- the health statepublic rx.Single<io.vertx.ext.consul.CheckList> rxHealthState(io.vertx.ext.consul.HealthState healthState)
healthState
- the health statepublic ConsulClient healthStateWithOptions(io.vertx.ext.consul.HealthState healthState, io.vertx.ext.consul.CheckQueryOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList>> resultHandler)
healthState
- the health stateoptions
- options used to request checksresultHandler
- will be provided with list of checkspublic ConsulClient healthStateWithOptions(io.vertx.ext.consul.HealthState healthState, io.vertx.ext.consul.CheckQueryOptions options)
healthState
- the health stateoptions
- options used to request checkspublic rx.Single<io.vertx.ext.consul.CheckList> rxHealthStateWithOptions(io.vertx.ext.consul.HealthState healthState, io.vertx.ext.consul.CheckQueryOptions options)
healthState
- the health stateoptions
- options used to request checkspublic ConsulClient healthServiceNodes(String service, boolean passing, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceEntryList>> resultHandler)
catalogServiceNodes(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>)
endpoint;
however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.service
- the service namepassing
- if true, filter results to only nodes with all checks in the passing stateresultHandler
- will be provided with list of servicespublic ConsulClient healthServiceNodes(String service, boolean passing)
catalogServiceNodes(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>)
endpoint;
however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.service
- the service namepassing
- if true, filter results to only nodes with all checks in the passing statepublic rx.Single<io.vertx.ext.consul.ServiceEntryList> rxHealthServiceNodes(String service, boolean passing)
catalogServiceNodes(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>)
endpoint;
however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.service
- the service namepassing
- if true, filter results to only nodes with all checks in the passing statepublic ConsulClient healthServiceNodesWithOptions(String service, boolean passing, io.vertx.ext.consul.ServiceQueryOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceEntryList>> resultHandler)
catalogServiceNodesWithOptions(java.lang.String, io.vertx.ext.consul.ServiceQueryOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>)
endpoint;
however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.service
- the service namepassing
- if true, filter results to only nodes with all checks in the passing stateoptions
- options used to request servicesresultHandler
- will be provided with list of servicespublic ConsulClient healthServiceNodesWithOptions(String service, boolean passing, io.vertx.ext.consul.ServiceQueryOptions options)
catalogServiceNodesWithOptions(java.lang.String, io.vertx.ext.consul.ServiceQueryOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>)
endpoint;
however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.service
- the service namepassing
- if true, filter results to only nodes with all checks in the passing stateoptions
- options used to request servicespublic rx.Single<io.vertx.ext.consul.ServiceEntryList> rxHealthServiceNodesWithOptions(String service, boolean passing, io.vertx.ext.consul.ServiceQueryOptions options)
catalogServiceNodesWithOptions(java.lang.String, io.vertx.ext.consul.ServiceQueryOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>)
endpoint;
however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.service
- the service namepassing
- if true, filter results to only nodes with all checks in the passing stateoptions
- options used to request servicespublic ConsulClient catalogServices(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>> resultHandler)
resultHandler
- will be provided with list of servicespublic ConsulClient catalogServices()
public rx.Single<io.vertx.ext.consul.ServiceList> rxCatalogServices()
public ConsulClient catalogServicesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>> resultHandler)
catalogServices(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>)
options
- the blocking optionsresultHandler
- will be provided with list of servicespublic ConsulClient catalogServicesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
catalogServices(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>)
options
- the blocking optionspublic rx.Single<io.vertx.ext.consul.ServiceList> rxCatalogServicesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
catalogServices(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>)
options
- the blocking optionspublic ConsulClient catalogNodeServices(String node, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>> resultHandler)
node
- node nameresultHandler
- will be provided with list of servicespublic ConsulClient catalogNodeServices(String node)
node
- node namepublic rx.Single<io.vertx.ext.consul.ServiceList> rxCatalogNodeServices(String node)
node
- node namepublic ConsulClient catalogNodeServicesWithOptions(String node, io.vertx.ext.consul.BlockingQueryOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>> resultHandler)
catalogNodeServices(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>)
node
- node nameoptions
- the blocking optionsresultHandler
- will be provided with list of servicespublic ConsulClient catalogNodeServicesWithOptions(String node, io.vertx.ext.consul.BlockingQueryOptions options)
catalogNodeServices(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>)
node
- node nameoptions
- the blocking optionspublic rx.Single<io.vertx.ext.consul.ServiceList> rxCatalogNodeServicesWithOptions(String node, io.vertx.ext.consul.BlockingQueryOptions options)
catalogNodeServices(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>)
node
- node nameoptions
- the blocking optionspublic ConsulClient localServices(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.ext.consul.Service>>> resultHandler)
resultHandler
- will be provided with list of servicespublic ConsulClient localServices()
public rx.Single<List<io.vertx.ext.consul.Service>> rxLocalServices()
public ConsulClient localChecks(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.ext.consul.Check>>> resultHandler)
resultHandler
- will be provided with list of checkspublic ConsulClient localChecks()
public rx.Single<List<io.vertx.ext.consul.Check>> rxLocalChecks()
public ConsulClient registerCheck(io.vertx.ext.consul.CheckOptions checkOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
checkOptions
- options used to register new checkresultHandler
- will be called when completepublic ConsulClient registerCheck(io.vertx.ext.consul.CheckOptions checkOptions)
checkOptions
- options used to register new checkpublic rx.Single<Void> rxRegisterCheck(io.vertx.ext.consul.CheckOptions checkOptions)
checkOptions
- options used to register new checkpublic ConsulClient deregisterCheck(String checkId, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
checkId
- the ID of checkresultHandler
- will be called when completepublic ConsulClient deregisterCheck(String checkId)
checkId
- the ID of checkpublic rx.Single<Void> rxDeregisterCheck(String checkId)
checkId
- the ID of checkpublic ConsulClient passCheck(String checkId, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
checkId
- the ID of checkresultHandler
- will be called when completepublic ConsulClient passCheck(String checkId)
checkId
- the ID of checkpublic rx.Single<Void> rxPassCheck(String checkId)
checkId
- the ID of checkpublic ConsulClient passCheckWithNote(String checkId, String note, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
checkId
- the ID of checknote
- specifies a human-readable message. This will be passed through to the check's Output
field.resultHandler
- will be called when completepublic ConsulClient passCheckWithNote(String checkId, String note)
checkId
- the ID of checknote
- specifies a human-readable message. This will be passed through to the check's Output
field.public rx.Single<Void> rxPassCheckWithNote(String checkId, String note)
checkId
- the ID of checknote
- specifies a human-readable message. This will be passed through to the check's Output
field.public ConsulClient warnCheck(String checkId, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
checkId
- the ID of checkresultHandler
- will be called when completepublic ConsulClient warnCheck(String checkId)
checkId
- the ID of checkpublic rx.Single<Void> rxWarnCheck(String checkId)
checkId
- the ID of checkpublic ConsulClient warnCheckWithNote(String checkId, String note, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
checkId
- the ID of checknote
- specifies a human-readable message. This will be passed through to the check's Output
field.resultHandler
- will be called when completepublic ConsulClient warnCheckWithNote(String checkId, String note)
checkId
- the ID of checknote
- specifies a human-readable message. This will be passed through to the check's Output
field.public rx.Single<Void> rxWarnCheckWithNote(String checkId, String note)
checkId
- the ID of checknote
- specifies a human-readable message. This will be passed through to the check's Output
field.public ConsulClient failCheck(String checkId, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
checkId
- the ID of checkresultHandler
- will be called when completepublic ConsulClient failCheck(String checkId)
checkId
- the ID of checkpublic rx.Single<Void> rxFailCheck(String checkId)
checkId
- the ID of checkpublic ConsulClient failCheckWithNote(String checkId, String note, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
checkId
- the ID of checknote
- specifies a human-readable message. This will be passed through to the check's Output
field.resultHandler
- will be called when completepublic ConsulClient failCheckWithNote(String checkId, String note)
checkId
- the ID of checknote
- specifies a human-readable message. This will be passed through to the check's Output
field.public rx.Single<Void> rxFailCheckWithNote(String checkId, String note)
checkId
- the ID of checknote
- specifies a human-readable message. This will be passed through to the check's Output
field.public ConsulClient updateCheck(String checkId, io.vertx.ext.consul.CheckStatus status, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
checkId
- the ID of checkstatus
- new status of checkresultHandler
- will be called when completepublic ConsulClient updateCheck(String checkId, io.vertx.ext.consul.CheckStatus status)
checkId
- the ID of checkstatus
- new status of checkpublic rx.Single<Void> rxUpdateCheck(String checkId, io.vertx.ext.consul.CheckStatus status)
checkId
- the ID of checkstatus
- new status of checkpublic ConsulClient updateCheckWithNote(String checkId, io.vertx.ext.consul.CheckStatus status, String note, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
checkId
- the ID of checkstatus
- new status of checknote
- specifies a human-readable message. This will be passed through to the check's Output
field.resultHandler
- will be called when completepublic ConsulClient updateCheckWithNote(String checkId, io.vertx.ext.consul.CheckStatus status, String note)
checkId
- the ID of checkstatus
- new status of checknote
- specifies a human-readable message. This will be passed through to the check's Output
field.public rx.Single<Void> rxUpdateCheckWithNote(String checkId, io.vertx.ext.consul.CheckStatus status, String note)
checkId
- the ID of checkstatus
- new status of checknote
- specifies a human-readable message. This will be passed through to the check's Output
field.public ConsulClient leaderStatus(io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> resultHandler)
10.1.10.12:8300
"resultHandler
- will be provided with address of cluster leaderpublic ConsulClient leaderStatus()
10.1.10.12:8300
"public rx.Single<String> rxLeaderStatus()
10.1.10.12:8300
"public ConsulClient peersStatus(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<String>>> resultHandler)
10.1.10.12:8300
", "10.1.10.13:8300
"resultHandler
- will be provided with list of peerspublic ConsulClient peersStatus()
10.1.10.12:8300
", "10.1.10.13:8300
"public rx.Single<List<String>> rxPeersStatus()
10.1.10.12:8300
", "10.1.10.13:8300
"public ConsulClient createSession(io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> idHandler)
idHandler
- will be provided with ID of new sessionpublic ConsulClient createSession()
public rx.Single<String> rxCreateSession()
public ConsulClient createSessionWithOptions(io.vertx.ext.consul.SessionOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> idHandler)
options
- options used to create sessionidHandler
- will be provided with ID of new sessionpublic ConsulClient createSessionWithOptions(io.vertx.ext.consul.SessionOptions options)
options
- options used to create sessionpublic rx.Single<String> rxCreateSessionWithOptions(io.vertx.ext.consul.SessionOptions options)
options
- options used to create sessionpublic ConsulClient infoSession(String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>> resultHandler)
id
- the ID of requested sessionresultHandler
- will be provided with info of requested sessionpublic ConsulClient infoSession(String id)
id
- the ID of requested sessionpublic rx.Single<io.vertx.ext.consul.Session> rxInfoSession(String id)
id
- the ID of requested sessionpublic ConsulClient infoSessionWithOptions(String id, io.vertx.ext.consul.BlockingQueryOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>> resultHandler)
infoSession(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>>)
id
- the ID of requested sessionoptions
- the blocking optionsresultHandler
- will be provided with info of requested sessionpublic ConsulClient infoSessionWithOptions(String id, io.vertx.ext.consul.BlockingQueryOptions options)
infoSession(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>>)
id
- the ID of requested sessionoptions
- the blocking optionspublic rx.Single<io.vertx.ext.consul.Session> rxInfoSessionWithOptions(String id, io.vertx.ext.consul.BlockingQueryOptions options)
infoSession(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>>)
id
- the ID of requested sessionoptions
- the blocking optionspublic ConsulClient renewSession(String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>> resultHandler)
id
- the ID of session that should be renewedresultHandler
- will be provided with info of renewed sessionpublic ConsulClient renewSession(String id)
id
- the ID of session that should be renewedpublic rx.Single<io.vertx.ext.consul.Session> rxRenewSession(String id)
id
- the ID of session that should be renewedpublic ConsulClient listSessions(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>> resultHandler)
resultHandler
- will be provided with list of sessionspublic ConsulClient listSessions()
public rx.Single<io.vertx.ext.consul.SessionList> rxListSessions()
public ConsulClient listSessionsWithOptions(io.vertx.ext.consul.BlockingQueryOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>> resultHandler)
listSessions(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>)
options
- the blocking optionsresultHandler
- will be provided with list of sessionspublic ConsulClient listSessionsWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
listSessions(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>)
options
- the blocking optionspublic rx.Single<io.vertx.ext.consul.SessionList> rxListSessionsWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
listSessions(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>)
options
- the blocking optionspublic ConsulClient listNodeSessions(String nodeId, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>> resultHandler)
nodeId
- the ID of noderesultHandler
- will be provided with list of sessionspublic ConsulClient listNodeSessions(String nodeId)
nodeId
- the ID of nodepublic rx.Single<io.vertx.ext.consul.SessionList> rxListNodeSessions(String nodeId)
nodeId
- the ID of nodepublic ConsulClient listNodeSessionsWithOptions(String nodeId, io.vertx.ext.consul.BlockingQueryOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>> resultHandler)
listNodeSessions(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>)
nodeId
- the ID of nodeoptions
- the blocking optionsresultHandler
- will be provided with list of sessionspublic ConsulClient listNodeSessionsWithOptions(String nodeId, io.vertx.ext.consul.BlockingQueryOptions options)
listNodeSessions(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>)
nodeId
- the ID of nodeoptions
- the blocking optionspublic rx.Single<io.vertx.ext.consul.SessionList> rxListNodeSessionsWithOptions(String nodeId, io.vertx.ext.consul.BlockingQueryOptions options)
listNodeSessions(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>)
nodeId
- the ID of nodeoptions
- the blocking optionspublic ConsulClient destroySession(String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
id
- the ID of sessionresultHandler
- will be called when completepublic ConsulClient destroySession(String id)
id
- the ID of sessionpublic rx.Single<Void> rxDestroySession(String id)
id
- the ID of sessionpublic ConsulClient createPreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition, io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> resultHandler)
definition
- definition of the prepare queryresultHandler
- will be provided with id of created prepare querypublic ConsulClient createPreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition)
definition
- definition of the prepare querypublic rx.Single<String> rxCreatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition)
definition
- definition of the prepare querypublic ConsulClient getPreparedQuery(String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.PreparedQueryDefinition>> resultHandler)
id
- the id of the query to readresultHandler
- will be provided with definition of the prepare querypublic ConsulClient getPreparedQuery(String id)
id
- the id of the query to readpublic rx.Single<io.vertx.ext.consul.PreparedQueryDefinition> rxGetPreparedQuery(String id)
id
- the id of the query to readpublic ConsulClient getAllPreparedQueries(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.ext.consul.PreparedQueryDefinition>>> resultHandler)
resultHandler
- will be provided with list of definitions of the all prepare queriespublic ConsulClient getAllPreparedQueries()
public rx.Single<List<io.vertx.ext.consul.PreparedQueryDefinition>> rxGetAllPreparedQueries()
public ConsulClient updatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
definition
- definition of the prepare queryresultHandler
- will be called when completepublic ConsulClient updatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition)
definition
- definition of the prepare querypublic rx.Single<Void> rxUpdatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition)
definition
- definition of the prepare querypublic ConsulClient deletePreparedQuery(String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
id
- the id of the query to deleteresultHandler
- will be called when completepublic ConsulClient deletePreparedQuery(String id)
id
- the id of the query to deletepublic rx.Single<Void> rxDeletePreparedQuery(String id)
id
- the id of the query to deletepublic ConsulClient executePreparedQuery(String query, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.PreparedQueryExecuteResponse>> resultHandler)
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.resultHandler
- will be provided with responsepublic ConsulClient executePreparedQuery(String query)
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.public rx.Single<io.vertx.ext.consul.PreparedQueryExecuteResponse> rxExecutePreparedQuery(String query)
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.public ConsulClient executePreparedQueryWithOptions(String query, io.vertx.ext.consul.PreparedQueryExecuteOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.PreparedQueryExecuteResponse>> resultHandler)
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 queryresultHandler
- will be provided with responsepublic ConsulClient executePreparedQueryWithOptions(String query, io.vertx.ext.consul.PreparedQueryExecuteOptions options)
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 querypublic rx.Single<io.vertx.ext.consul.PreparedQueryExecuteResponse> rxExecutePreparedQueryWithOptions(String query, io.vertx.ext.consul.PreparedQueryExecuteOptions options)
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 querypublic void close()
public static ConsulClient newInstance(io.vertx.ext.consul.ConsulClient arg)
Copyright © 2021 Eclipse. All rights reserved.