Registry / networking / consul-client

consul-client

JSON →
library1.5.3javamavenunverified

Java client for interacting with HashiCorp Consul for service discovery and configuration.

<dependency> <groupId>com.orbitz.consul</groupId> <artifactId>consul-client</artifactId> <version>1.5.3</version> </dependency>
INSTALL
IMPORT
SIG · CONSUL-CLIENT
C
consul-client
networkingjavav1.5.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Consul
com.orbitz.consul.Consul

Connects to Consul agent and registers a service.

import com.orbitz.consul.Consul; Consul client = Consul.builder().build(); String serviceId = client.agentClient().register(8080, 3, "my-service", "my-service-id");
Debug
Known issues
gotchaThis client is not actively maintained; consider using official Consul Java client.
fix
Switch to com.ecwid.consul:consul-api or official HashiCorp client.
affects: >=1.5.0
Upgrade
Version history
1.5.3latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
20
Resources
consul-client — mvn dependency:get consul-client · libregistry