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 |
---|---|
io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> |
agentInfo()
Returns the configuration and member information of the local agent
|
io.reactivex.rxjava3.core.Single<List<String>> |
catalogDatacenters()
Return all the datacenters that are known by the Consul server
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.NodeList> |
catalogNodes()
Returns the nodes registered in a datacenter
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> |
catalogNodeServices(String node)
Returns the node's registered services
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> |
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.reactivex.rxjava3.core.Single<io.vertx.ext.consul.NodeList> |
catalogNodesWithOptions(io.vertx.ext.consul.NodeQueryOptions options)
Returns the nodes registered in a datacenter
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> |
catalogServiceNodes(String service)
Returns the nodes providing a service
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> |
catalogServiceNodesWithOptions(String service,
io.vertx.ext.consul.ServiceQueryOptions options)
Returns the nodes providing a service
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> |
catalogServices()
Returns the services registered in a datacenter
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> |
catalogServicesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
Returns the services registered in a datacenter
This is blocking query unlike
catalogServices() |
io.reactivex.rxjava3.core.Single<String> |
cloneAclToken(String id)
Clone Acl token
|
void |
close()
Close the client and release its resources
|
io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.DcCoordinates>> |
coordinateDatacenters()
Returns the WAN network coordinates for all Consul servers, organized by DCs
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CoordinateList> |
coordinateNodes()
Returns the LAN network coordinates for all nodes in a given DC
|
io.reactivex.rxjava3.core.Single<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 unlike
coordinateNodes() |
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.
|
io.reactivex.rxjava3.core.Single<String> |
createAclToken(io.vertx.ext.consul.AclToken token)
Create new Acl token
|
io.reactivex.rxjava3.core.Single<String> |
createPreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition) |
io.reactivex.rxjava3.core.Single<String> |
createSession()
Initialize a new session
|
io.reactivex.rxjava3.core.Single<String> |
createSessionWithOptions(io.vertx.ext.consul.SessionOptions options)
Initialize a new session
|
io.reactivex.rxjava3.core.Completable |
deletePreparedQuery(String id)
Deletes an existing prepared query
|
io.reactivex.rxjava3.core.Completable |
deleteValue(String key)
Remove the key/value pair that corresponding to the specified key
|
io.reactivex.rxjava3.core.Completable |
deleteValues(String keyPrefix)
Removes all the key/value pair that corresponding to the specified key prefix
|
io.reactivex.rxjava3.core.Completable |
deregisterCatalogService(String nodeId,
String serviceId)
Deregister entities from the node or deregister the node itself.
|
io.reactivex.rxjava3.core.Completable |
deregisterCheck(String checkId)
Remove a check from the local agent.
|
io.reactivex.rxjava3.core.Completable |
deregisterService(String id)
Remove a service from the local agent.
|
io.reactivex.rxjava3.core.Completable |
destroyAclToken(String id)
Destroy Acl token
|
io.reactivex.rxjava3.core.Completable |
destroySession(String id)
Destroys the given session
|
boolean |
equals(Object o) |
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.PreparedQueryExecuteResponse> |
executePreparedQuery(String query)
Executes an existing prepared query.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.PreparedQueryExecuteResponse> |
executePreparedQueryWithOptions(String query,
io.vertx.ext.consul.PreparedQueryExecuteOptions options)
Executes an existing prepared query.
|
io.reactivex.rxjava3.core.Completable |
failCheck(String checkId)
Set status of the check to "critical".
|
io.reactivex.rxjava3.core.Completable |
failCheckWithNote(String checkId,
String note)
Set status of the check to "critical".
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Event> |
fireEvent(String name)
Fires a new user event
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Event> |
fireEventWithOptions(String name,
io.vertx.ext.consul.EventOptions options)
Fires a new user event
|
io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.PreparedQueryDefinition>> |
getAllPreparedQueries()
Returns a list of all prepared queries.
|
io.vertx.ext.consul.ConsulClient |
getDelegate() |
io.reactivex.rxjava3.core.Single<List<String>> |
getKeys(String keyPrefix)
Returns the list of keys that corresponding to the specified key prefix.
|
io.reactivex.rxjava3.core.Single<List<String>> |
getKeysWithOptions(String keyPrefix,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns the list of keys that corresponding to the specified key prefix.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.PreparedQueryDefinition> |
getPreparedQuery(String id)
Returns an existing prepared query
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.KeyValue> |
getValue(String key)
Returns key/value pair that corresponding to the specified key.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.KeyValueList> |
getValues(String keyPrefix)
Returns the list of key/value pairs that corresponding to the specified key prefix.
|
io.reactivex.rxjava3.core.Single<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.reactivex.rxjava3.core.Single<io.vertx.ext.consul.KeyValue> |
getValueWithOptions(String key,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns key/value pair that corresponding to the specified key.
|
int |
hashCode() |
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CheckList> |
healthChecks(String service)
Returns the checks associated with the service
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CheckList> |
healthChecksWithOptions(String service,
io.vertx.ext.consul.CheckQueryOptions options)
Returns the checks associated with the service
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceEntryList> |
healthServiceNodes(String service,
boolean passing)
Returns the nodes providing the service.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceEntryList> |
healthServiceNodesWithOptions(String service,
boolean passing,
io.vertx.ext.consul.ServiceQueryOptions options)
Returns the nodes providing the service.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CheckList> |
healthState(io.vertx.ext.consul.HealthState healthState)
Returns the checks in the specified status
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CheckList> |
healthStateWithOptions(io.vertx.ext.consul.HealthState healthState,
io.vertx.ext.consul.CheckQueryOptions options)
Returns the checks in the specified status
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.AclToken> |
infoAclToken(String id)
Get info of Acl token
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Session> |
infoSession(String id)
Returns the requested session information
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Session> |
infoSessionWithOptions(String id,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns the requested session information
This is blocking query unlike
infoSession(java.lang.String) |
io.reactivex.rxjava3.core.Single<String> |
leaderStatus()
Get the Raft leader for the datacenter in which the agent is running.
|
io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.AclToken>> |
listAclTokens()
Get list of Acl token
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.EventList> |
listEvents()
Returns the most recent events known by the agent
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.EventList> |
listEventsWithOptions(io.vertx.ext.consul.EventListOptions options)
Returns the most recent events known by the agent.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.SessionList> |
listNodeSessions(String nodeId)
Returns the active sessions for a given node
|
io.reactivex.rxjava3.core.Single<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 unlike
listNodeSessions(java.lang.String) |
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.SessionList> |
listSessions()
Returns the active sessions
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.SessionList> |
listSessionsWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
Returns the active sessions
This is blocking query unlike
listSessions() |
io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.Check>> |
localChecks()
Return all the checks that are registered with the local agent.
|
io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.Service>> |
localServices()
Returns list of services registered with the local agent.
|
io.reactivex.rxjava3.core.Completable |
maintenanceService(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions)
Places a given service into "maintenance mode"
|
static ConsulClient |
newInstance(io.vertx.ext.consul.ConsulClient arg) |
io.reactivex.rxjava3.core.Completable |
passCheck(String checkId)
Set status of the check to "passing".
|
io.reactivex.rxjava3.core.Completable |
passCheckWithNote(String checkId,
String note)
Set status of the check to "passing".
|
io.reactivex.rxjava3.core.Single<List<String>> |
peersStatus()
Retrieves the Raft peers for the datacenter in which the the agent is running.
|
io.reactivex.rxjava3.core.Single<Boolean> |
putValue(String key,
String value)
Adds specified key/value pair
|
io.reactivex.rxjava3.core.Single<Boolean> |
putValueWithOptions(String key,
String value,
io.vertx.ext.consul.KeyValueOptions options) |
io.reactivex.rxjava3.core.Completable |
registerCatalogService(io.vertx.ext.consul.Node nodeOptions,
io.vertx.ext.consul.ServiceOptions serviceOptions)
Register node with external service
|
io.reactivex.rxjava3.core.Completable |
registerCheck(io.vertx.ext.consul.CheckOptions checkOptions)
Add a new check to the local agent.
|
io.reactivex.rxjava3.core.Completable |
registerService(io.vertx.ext.consul.ServiceOptions serviceOptions)
Adds a new service, with an optional health check, to the local agent.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Session> |
renewSession(String id)
Renews the given session.
|
io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> |
rxAgentInfo()
Returns the configuration and member information of the local agent
|
io.reactivex.rxjava3.core.Single<List<String>> |
rxCatalogDatacenters()
Return all the datacenters that are known by the Consul server
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.NodeList> |
rxCatalogNodes()
Returns the nodes registered in a datacenter
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> |
rxCatalogNodeServices(String node)
Returns the node's registered services
|
io.reactivex.rxjava3.core.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.reactivex.rxjava3.core.Single<io.vertx.ext.consul.NodeList> |
rxCatalogNodesWithOptions(io.vertx.ext.consul.NodeQueryOptions options)
Returns the nodes registered in a datacenter
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> |
rxCatalogServiceNodes(String service)
Returns the nodes providing a service
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> |
rxCatalogServiceNodesWithOptions(String service,
io.vertx.ext.consul.ServiceQueryOptions options)
Returns the nodes providing a service
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> |
rxCatalogServices()
Returns the services registered in a datacenter
|
io.reactivex.rxjava3.core.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.reactivex.rxjava3.core.Single<String> |
rxCloneAclToken(String id)
Clone Acl token
|
io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.DcCoordinates>> |
rxCoordinateDatacenters()
Returns the WAN network coordinates for all Consul servers, organized by DCs
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CoordinateList> |
rxCoordinateNodes()
Returns the LAN network coordinates for all nodes in a given DC
|
io.reactivex.rxjava3.core.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.reactivex.rxjava3.core.Single<String> |
rxCreateAclToken(io.vertx.ext.consul.AclToken token)
Create new Acl token
|
io.reactivex.rxjava3.core.Single<String> |
rxCreatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition) |
io.reactivex.rxjava3.core.Single<String> |
rxCreateSession()
Initialize a new session
|
io.reactivex.rxjava3.core.Single<String> |
rxCreateSessionWithOptions(io.vertx.ext.consul.SessionOptions options)
Initialize a new session
|
io.reactivex.rxjava3.core.Completable |
rxDeletePreparedQuery(String id)
Deletes an existing prepared query
|
io.reactivex.rxjava3.core.Completable |
rxDeleteValue(String key)
Remove the key/value pair that corresponding to the specified key
|
io.reactivex.rxjava3.core.Completable |
rxDeleteValues(String keyPrefix)
Removes all the key/value pair that corresponding to the specified key prefix
|
io.reactivex.rxjava3.core.Completable |
rxDeregisterCatalogService(String nodeId,
String serviceId)
Deregister entities from the node or deregister the node itself.
|
io.reactivex.rxjava3.core.Completable |
rxDeregisterCheck(String checkId)
Remove a check from the local agent.
|
io.reactivex.rxjava3.core.Completable |
rxDeregisterService(String id)
Remove a service from the local agent.
|
io.reactivex.rxjava3.core.Completable |
rxDestroyAclToken(String id)
Destroy Acl token
|
io.reactivex.rxjava3.core.Completable |
rxDestroySession(String id)
Destroys the given session
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.PreparedQueryExecuteResponse> |
rxExecutePreparedQuery(String query)
Executes an existing prepared query.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.PreparedQueryExecuteResponse> |
rxExecutePreparedQueryWithOptions(String query,
io.vertx.ext.consul.PreparedQueryExecuteOptions options)
Executes an existing prepared query.
|
io.reactivex.rxjava3.core.Completable |
rxFailCheck(String checkId)
Set status of the check to "critical".
|
io.reactivex.rxjava3.core.Completable |
rxFailCheckWithNote(String checkId,
String note)
Set status of the check to "critical".
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Event> |
rxFireEvent(String name)
Fires a new user event
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Event> |
rxFireEventWithOptions(String name,
io.vertx.ext.consul.EventOptions options)
Fires a new user event
|
io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.PreparedQueryDefinition>> |
rxGetAllPreparedQueries()
Returns a list of all prepared queries.
|
io.reactivex.rxjava3.core.Single<List<String>> |
rxGetKeys(String keyPrefix)
Returns the list of keys that corresponding to the specified key prefix.
|
io.reactivex.rxjava3.core.Single<List<String>> |
rxGetKeysWithOptions(String keyPrefix,
io.vertx.ext.consul.BlockingQueryOptions options)
Returns the list of keys that corresponding to the specified key prefix.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.PreparedQueryDefinition> |
rxGetPreparedQuery(String id)
Returns an existing prepared query
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.KeyValue> |
rxGetValue(String key)
Returns key/value pair that corresponding to the specified key.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.KeyValueList> |
rxGetValues(String keyPrefix)
Returns the list of key/value pairs that corresponding to the specified key prefix.
|
io.reactivex.rxjava3.core.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.
|
io.reactivex.rxjava3.core.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.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CheckList> |
rxHealthChecks(String service)
Returns the checks associated with the service
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CheckList> |
rxHealthChecksWithOptions(String service,
io.vertx.ext.consul.CheckQueryOptions options)
Returns the checks associated with the service
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceEntryList> |
rxHealthServiceNodes(String service,
boolean passing)
Returns the nodes providing the service.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceEntryList> |
rxHealthServiceNodesWithOptions(String service,
boolean passing,
io.vertx.ext.consul.ServiceQueryOptions options)
Returns the nodes providing the service.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CheckList> |
rxHealthState(io.vertx.ext.consul.HealthState healthState)
Returns the checks in the specified status
|
io.reactivex.rxjava3.core.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
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.AclToken> |
rxInfoAclToken(String id)
Get info of Acl token
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Session> |
rxInfoSession(String id)
Returns the requested session information
|
io.reactivex.rxjava3.core.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.reactivex.rxjava3.core.Single<String> |
rxLeaderStatus()
Get the Raft leader for the datacenter in which the agent is running.
|
io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.AclToken>> |
rxListAclTokens()
Get list of Acl token
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.EventList> |
rxListEvents()
Returns the most recent events known by the agent
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.EventList> |
rxListEventsWithOptions(io.vertx.ext.consul.EventListOptions options)
Returns the most recent events known by the agent.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.SessionList> |
rxListNodeSessions(String nodeId)
Returns the active sessions for a given node
|
io.reactivex.rxjava3.core.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.reactivex.rxjava3.core.Single<io.vertx.ext.consul.SessionList> |
rxListSessions()
Returns the active sessions
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.SessionList> |
rxListSessionsWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
Returns the active sessions
This is blocking query unlike
listSessions() |
io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.Check>> |
rxLocalChecks()
Return all the checks that are registered with the local agent.
|
io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.Service>> |
rxLocalServices()
Returns list of services registered with the local agent.
|
io.reactivex.rxjava3.core.Completable |
rxMaintenanceService(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions)
Places a given service into "maintenance mode"
|
io.reactivex.rxjava3.core.Completable |
rxPassCheck(String checkId)
Set status of the check to "passing".
|
io.reactivex.rxjava3.core.Completable |
rxPassCheckWithNote(String checkId,
String note)
Set status of the check to "passing".
|
io.reactivex.rxjava3.core.Single<List<String>> |
rxPeersStatus()
Retrieves the Raft peers for the datacenter in which the the agent is running.
|
io.reactivex.rxjava3.core.Single<Boolean> |
rxPutValue(String key,
String value)
Adds specified key/value pair
|
io.reactivex.rxjava3.core.Single<Boolean> |
rxPutValueWithOptions(String key,
String value,
io.vertx.ext.consul.KeyValueOptions options) |
io.reactivex.rxjava3.core.Completable |
rxRegisterCatalogService(io.vertx.ext.consul.Node nodeOptions,
io.vertx.ext.consul.ServiceOptions serviceOptions)
Register node with external service
|
io.reactivex.rxjava3.core.Completable |
rxRegisterCheck(io.vertx.ext.consul.CheckOptions checkOptions)
Add a new check to the local agent.
|
io.reactivex.rxjava3.core.Completable |
rxRegisterService(io.vertx.ext.consul.ServiceOptions serviceOptions)
Adds a new service, with an optional health check, to the local agent.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Session> |
rxRenewSession(String id)
Renews the given session.
|
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.TxnResponse> |
rxTransaction(io.vertx.ext.consul.TxnRequest request)
Manages multiple operations inside a single, atomic transaction.
|
io.reactivex.rxjava3.core.Single<String> |
rxUpdateAclToken(io.vertx.ext.consul.AclToken token)
Update Acl token
|
io.reactivex.rxjava3.core.Completable |
rxUpdateCheck(String checkId,
io.vertx.ext.consul.CheckStatus status)
Set status of the check to given status.
|
io.reactivex.rxjava3.core.Completable |
rxUpdateCheckWithNote(String checkId,
io.vertx.ext.consul.CheckStatus status,
String note)
Set status of the check to given status.
|
io.reactivex.rxjava3.core.Completable |
rxUpdatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition) |
io.reactivex.rxjava3.core.Completable |
rxWarnCheck(String checkId)
Set status of the check to "warning".
|
io.reactivex.rxjava3.core.Completable |
rxWarnCheckWithNote(String checkId,
String note)
Set status of the check to "warning".
|
String |
toString() |
io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.TxnResponse> |
transaction(io.vertx.ext.consul.TxnRequest request)
Manages multiple operations inside a single, atomic transaction.
|
io.reactivex.rxjava3.core.Single<String> |
updateAclToken(io.vertx.ext.consul.AclToken token)
Update Acl token
|
io.reactivex.rxjava3.core.Completable |
updateCheck(String checkId,
io.vertx.ext.consul.CheckStatus status)
Set status of the check to given status.
|
io.reactivex.rxjava3.core.Completable |
updateCheckWithNote(String checkId,
io.vertx.ext.consul.CheckStatus status,
String note)
Set status of the check to given status.
|
io.reactivex.rxjava3.core.Completable |
updatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition) |
io.reactivex.rxjava3.core.Completable |
warnCheck(String checkId)
Set status of the check to "warning".
|
io.reactivex.rxjava3.core.Completable |
warnCheckWithNote(String checkId,
String note)
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 io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> agentInfo()
public io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> rxAgentInfo()
public io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CoordinateList> coordinateNodes()
public io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CoordinateList> rxCoordinateNodes()
public io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CoordinateList> coordinateNodesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
coordinateNodes()
options
- the blocking optionspublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CoordinateList> rxCoordinateNodesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
coordinateNodes()
options
- the blocking optionspublic io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.DcCoordinates>> coordinateDatacenters()
public io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.DcCoordinates>> rxCoordinateDatacenters()
public io.reactivex.rxjava3.core.Single<List<String>> getKeys(String keyPrefix)
keyPrefix
- the prefixpublic io.reactivex.rxjava3.core.Single<List<String>> rxGetKeys(String keyPrefix)
keyPrefix
- the prefixpublic io.reactivex.rxjava3.core.Single<List<String>> getKeysWithOptions(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options)
keyPrefix
- the prefixoptions
- the blocking optionspublic io.reactivex.rxjava3.core.Single<List<String>> rxGetKeysWithOptions(String keyPrefix, io.vertx.ext.consul.BlockingQueryOptions options)
keyPrefix
- the prefixoptions
- the blocking optionspublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.KeyValue> getValue(String key)
KeyValue
object will be returned if no such key is found.key
- the keypublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.KeyValue> rxGetValue(String key)
KeyValue
object will be returned if no such key is found.key
- the keypublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.KeyValue> 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)
key
- the keyoptions
- the blocking optionspublic io.reactivex.rxjava3.core.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)
key
- the keyoptions
- the blocking optionspublic io.reactivex.rxjava3.core.Completable deleteValue(String key)
key
- the keypublic io.reactivex.rxjava3.core.Completable rxDeleteValue(String key)
key
- the keypublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.KeyValueList> getValues(String keyPrefix)
KeyValueList
object will be returned if no such key prefix is found.keyPrefix
- the prefixpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.KeyValueList> rxGetValues(String keyPrefix)
KeyValueList
object will be returned if no such key prefix is found.keyPrefix
- the prefixpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.KeyValueList> 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)
keyPrefix
- the prefixoptions
- the blocking optionspublic io.reactivex.rxjava3.core.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)
keyPrefix
- the prefixoptions
- the blocking optionspublic io.reactivex.rxjava3.core.Completable deleteValues(String keyPrefix)
keyPrefix
- the prefixpublic io.reactivex.rxjava3.core.Completable rxDeleteValues(String keyPrefix)
keyPrefix
- the prefixpublic io.reactivex.rxjava3.core.Single<Boolean> putValue(String key, String value)
key
- the keyvalue
- the valuepublic io.reactivex.rxjava3.core.Single<Boolean> rxPutValue(String key, String value)
key
- the keyvalue
- the valuepublic io.reactivex.rxjava3.core.Single<Boolean> putValueWithOptions(String key, String value, io.vertx.ext.consul.KeyValueOptions options)
key
- the keyvalue
- the valueoptions
- options used to push pairpublic io.reactivex.rxjava3.core.Single<Boolean> rxPutValueWithOptions(String key, String value, io.vertx.ext.consul.KeyValueOptions options)
key
- the keyvalue
- the valueoptions
- options used to push pairpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.TxnResponse> transaction(io.vertx.ext.consul.TxnRequest request)
request
- transaction requestpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.TxnResponse> rxTransaction(io.vertx.ext.consul.TxnRequest request)
request
- transaction requestpublic io.reactivex.rxjava3.core.Single<String> createAclToken(io.vertx.ext.consul.AclToken token)
token
- properties of the tokenpublic io.reactivex.rxjava3.core.Single<String> rxCreateAclToken(io.vertx.ext.consul.AclToken token)
token
- properties of the tokenpublic io.reactivex.rxjava3.core.Single<String> updateAclToken(io.vertx.ext.consul.AclToken token)
token
- properties of the token to be updatedpublic io.reactivex.rxjava3.core.Single<String> rxUpdateAclToken(io.vertx.ext.consul.AclToken token)
token
- properties of the token to be updatedpublic io.reactivex.rxjava3.core.Single<String> cloneAclToken(String id)
id
- the ID of token to be clonedpublic io.reactivex.rxjava3.core.Single<String> rxCloneAclToken(String id)
id
- the ID of token to be clonedpublic io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.AclToken>> listAclTokens()
public io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.AclToken>> rxListAclTokens()
public io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.AclToken> infoAclToken(String id)
id
- the ID of tokenpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.AclToken> rxInfoAclToken(String id)
id
- the ID of tokenpublic io.reactivex.rxjava3.core.Completable destroyAclToken(String id)
id
- the ID of tokenpublic io.reactivex.rxjava3.core.Completable rxDestroyAclToken(String id)
id
- the ID of tokenpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Event> fireEvent(String name)
name
- name of eventpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Event> rxFireEvent(String name)
name
- name of eventpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Event> fireEventWithOptions(String name, io.vertx.ext.consul.EventOptions options)
name
- name of eventoptions
- options used to create eventpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Event> rxFireEventWithOptions(String name, io.vertx.ext.consul.EventOptions options)
name
- name of eventoptions
- options used to create eventpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.EventList> listEvents()
public io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.EventList> rxListEvents()
public io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.EventList> listEventsWithOptions(io.vertx.ext.consul.EventListOptions options)
listEvents()
. 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 io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.EventList> rxListEventsWithOptions(io.vertx.ext.consul.EventListOptions options)
listEvents()
. 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 io.reactivex.rxjava3.core.Completable registerService(io.vertx.ext.consul.ServiceOptions serviceOptions)
serviceOptions
- the options of new servicepublic io.reactivex.rxjava3.core.Completable rxRegisterService(io.vertx.ext.consul.ServiceOptions serviceOptions)
serviceOptions
- the options of new servicepublic io.reactivex.rxjava3.core.Completable maintenanceService(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions)
maintenanceOptions
- the maintenance optionspublic io.reactivex.rxjava3.core.Completable rxMaintenanceService(io.vertx.ext.consul.MaintenanceOptions maintenanceOptions)
maintenanceOptions
- the maintenance optionspublic io.reactivex.rxjava3.core.Completable deregisterService(String id)
id
- the ID of servicepublic io.reactivex.rxjava3.core.Completable rxDeregisterService(String id)
id
- the ID of servicepublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> catalogServiceNodes(String service)
service
- name of servicepublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> rxCatalogServiceNodes(String service)
service
- name of servicepublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> catalogServiceNodesWithOptions(String service, io.vertx.ext.consul.ServiceQueryOptions options)
service
- name of serviceoptions
- options used to request servicespublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> rxCatalogServiceNodesWithOptions(String service, io.vertx.ext.consul.ServiceQueryOptions options)
service
- name of serviceoptions
- options used to request servicespublic io.reactivex.rxjava3.core.Single<List<String>> catalogDatacenters()
public io.reactivex.rxjava3.core.Single<List<String>> rxCatalogDatacenters()
public io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.NodeList> catalogNodes()
public io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.NodeList> rxCatalogNodes()
public io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.NodeList> catalogNodesWithOptions(io.vertx.ext.consul.NodeQueryOptions options)
options
- options used to request nodespublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.NodeList> rxCatalogNodesWithOptions(io.vertx.ext.consul.NodeQueryOptions options)
options
- options used to request nodespublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CheckList> healthChecks(String service)
service
- the service namepublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CheckList> rxHealthChecks(String service)
service
- the service namepublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CheckList> healthChecksWithOptions(String service, io.vertx.ext.consul.CheckQueryOptions options)
service
- the service nameoptions
- options used to request checkspublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CheckList> rxHealthChecksWithOptions(String service, io.vertx.ext.consul.CheckQueryOptions options)
service
- the service nameoptions
- options used to request checkspublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CheckList> healthState(io.vertx.ext.consul.HealthState healthState)
healthState
- the health statepublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CheckList> rxHealthState(io.vertx.ext.consul.HealthState healthState)
healthState
- the health statepublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.CheckList> healthStateWithOptions(io.vertx.ext.consul.HealthState healthState, io.vertx.ext.consul.CheckQueryOptions options)
healthState
- the health stateoptions
- options used to request checkspublic io.reactivex.rxjava3.core.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 io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceEntryList> healthServiceNodes(String service, boolean passing)
catalogServiceNodes(java.lang.String)
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 io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceEntryList> rxHealthServiceNodes(String service, boolean passing)
catalogServiceNodes(java.lang.String)
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 io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceEntryList> healthServiceNodesWithOptions(String service, boolean passing, io.vertx.ext.consul.ServiceQueryOptions options)
catalogServiceNodesWithOptions(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.service
- the service namepassing
- if true, filter results to only nodes with all checks in the passing stateoptions
- options used to request servicespublic io.reactivex.rxjava3.core.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)
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 io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> catalogServices()
public io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> rxCatalogServices()
public io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> catalogServicesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
catalogServices()
options
- the blocking optionspublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> rxCatalogServicesWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
catalogServices()
options
- the blocking optionspublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> catalogNodeServices(String node)
node
- node namepublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> rxCatalogNodeServices(String node)
node
- node namepublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> catalogNodeServicesWithOptions(String node, io.vertx.ext.consul.BlockingQueryOptions options)
catalogNodeServices(java.lang.String)
node
- node nameoptions
- the blocking optionspublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.ServiceList> rxCatalogNodeServicesWithOptions(String node, io.vertx.ext.consul.BlockingQueryOptions options)
catalogNodeServices(java.lang.String)
node
- node nameoptions
- the blocking optionspublic io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.Service>> localServices()
public io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.Service>> rxLocalServices()
public io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.Check>> localChecks()
public io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.Check>> rxLocalChecks()
public io.reactivex.rxjava3.core.Completable registerCheck(io.vertx.ext.consul.CheckOptions checkOptions)
checkOptions
- options used to register new checkpublic io.reactivex.rxjava3.core.Completable rxRegisterCheck(io.vertx.ext.consul.CheckOptions checkOptions)
checkOptions
- options used to register new checkpublic io.reactivex.rxjava3.core.Completable deregisterCheck(String checkId)
checkId
- the ID of checkpublic io.reactivex.rxjava3.core.Completable rxDeregisterCheck(String checkId)
checkId
- the ID of checkpublic io.reactivex.rxjava3.core.Completable passCheck(String checkId)
checkId
- the ID of checkpublic io.reactivex.rxjava3.core.Completable rxPassCheck(String checkId)
checkId
- the ID of checkpublic io.reactivex.rxjava3.core.Completable 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 io.reactivex.rxjava3.core.Completable 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 io.reactivex.rxjava3.core.Completable warnCheck(String checkId)
checkId
- the ID of checkpublic io.reactivex.rxjava3.core.Completable rxWarnCheck(String checkId)
checkId
- the ID of checkpublic io.reactivex.rxjava3.core.Completable 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 io.reactivex.rxjava3.core.Completable 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 io.reactivex.rxjava3.core.Completable failCheck(String checkId)
checkId
- the ID of checkpublic io.reactivex.rxjava3.core.Completable rxFailCheck(String checkId)
checkId
- the ID of checkpublic io.reactivex.rxjava3.core.Completable 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 io.reactivex.rxjava3.core.Completable 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 io.reactivex.rxjava3.core.Completable updateCheck(String checkId, io.vertx.ext.consul.CheckStatus status)
checkId
- the ID of checkstatus
- new status of checkpublic io.reactivex.rxjava3.core.Completable rxUpdateCheck(String checkId, io.vertx.ext.consul.CheckStatus status)
checkId
- the ID of checkstatus
- new status of checkpublic io.reactivex.rxjava3.core.Completable 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 io.reactivex.rxjava3.core.Completable 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 io.reactivex.rxjava3.core.Single<String> leaderStatus()
10.1.10.12:8300
"public io.reactivex.rxjava3.core.Single<String> rxLeaderStatus()
10.1.10.12:8300
"public io.reactivex.rxjava3.core.Single<List<String>> peersStatus()
10.1.10.12:8300
", "10.1.10.13:8300
"public io.reactivex.rxjava3.core.Single<List<String>> rxPeersStatus()
10.1.10.12:8300
", "10.1.10.13:8300
"public io.reactivex.rxjava3.core.Single<String> createSession()
public io.reactivex.rxjava3.core.Single<String> rxCreateSession()
public io.reactivex.rxjava3.core.Single<String> createSessionWithOptions(io.vertx.ext.consul.SessionOptions options)
options
- options used to create sessionpublic io.reactivex.rxjava3.core.Single<String> rxCreateSessionWithOptions(io.vertx.ext.consul.SessionOptions options)
options
- options used to create sessionpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Session> infoSession(String id)
id
- the ID of requested sessionpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Session> rxInfoSession(String id)
id
- the ID of requested sessionpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Session> infoSessionWithOptions(String id, io.vertx.ext.consul.BlockingQueryOptions options)
infoSession(java.lang.String)
id
- the ID of requested sessionoptions
- the blocking optionspublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Session> rxInfoSessionWithOptions(String id, io.vertx.ext.consul.BlockingQueryOptions options)
infoSession(java.lang.String)
id
- the ID of requested sessionoptions
- the blocking optionspublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Session> renewSession(String id)
id
- the ID of session that should be renewedpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.Session> rxRenewSession(String id)
id
- the ID of session that should be renewedpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.SessionList> listSessions()
public io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.SessionList> rxListSessions()
public io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.SessionList> listSessionsWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
listSessions()
options
- the blocking optionspublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.SessionList> rxListSessionsWithOptions(io.vertx.ext.consul.BlockingQueryOptions options)
listSessions()
options
- the blocking optionspublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.SessionList> listNodeSessions(String nodeId)
nodeId
- the ID of nodepublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.SessionList> rxListNodeSessions(String nodeId)
nodeId
- the ID of nodepublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.SessionList> listNodeSessionsWithOptions(String nodeId, io.vertx.ext.consul.BlockingQueryOptions options)
listNodeSessions(java.lang.String)
nodeId
- the ID of nodeoptions
- the blocking optionspublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.SessionList> rxListNodeSessionsWithOptions(String nodeId, io.vertx.ext.consul.BlockingQueryOptions options)
listNodeSessions(java.lang.String)
nodeId
- the ID of nodeoptions
- the blocking optionspublic io.reactivex.rxjava3.core.Completable destroySession(String id)
id
- the ID of sessionpublic io.reactivex.rxjava3.core.Completable rxDestroySession(String id)
id
- the ID of sessionpublic io.reactivex.rxjava3.core.Single<String> createPreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition)
definition
- definition of the prepare querypublic io.reactivex.rxjava3.core.Single<String> rxCreatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition)
definition
- definition of the prepare querypublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.PreparedQueryDefinition> getPreparedQuery(String id)
id
- the id of the query to readpublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.PreparedQueryDefinition> rxGetPreparedQuery(String id)
id
- the id of the query to readpublic io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.PreparedQueryDefinition>> getAllPreparedQueries()
public io.reactivex.rxjava3.core.Single<List<io.vertx.ext.consul.PreparedQueryDefinition>> rxGetAllPreparedQueries()
public io.reactivex.rxjava3.core.Completable updatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition)
definition
- definition of the prepare querypublic io.reactivex.rxjava3.core.Completable rxUpdatePreparedQuery(io.vertx.ext.consul.PreparedQueryDefinition definition)
definition
- definition of the prepare querypublic io.reactivex.rxjava3.core.Completable deletePreparedQuery(String id)
id
- the id of the query to deletepublic io.reactivex.rxjava3.core.Completable rxDeletePreparedQuery(String id)
id
- the id of the query to deletepublic io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.PreparedQueryExecuteResponse> 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 io.reactivex.rxjava3.core.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 io.reactivex.rxjava3.core.Single<io.vertx.ext.consul.PreparedQueryExecuteResponse> 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 io.reactivex.rxjava3.core.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 io.reactivex.rxjava3.core.Completable registerCatalogService(io.vertx.ext.consul.Node nodeOptions, io.vertx.ext.consul.ServiceOptions serviceOptions)
nodeOptions
- the options of new nodeserviceOptions
- the options of new servicepublic io.reactivex.rxjava3.core.Completable rxRegisterCatalogService(io.vertx.ext.consul.Node nodeOptions, io.vertx.ext.consul.ServiceOptions serviceOptions)
nodeOptions
- the options of new nodeserviceOptions
- the options of new servicepublic io.reactivex.rxjava3.core.Completable deregisterCatalogService(String nodeId, String serviceId)
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)public io.reactivex.rxjava3.core.Completable rxDeregisterCatalogService(String nodeId, String serviceId)
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)public void close()
public static ConsulClient newInstance(io.vertx.ext.consul.ConsulClient arg)
Copyright © 2022 Eclipse. All rights reserved.