Thread shutdownHook = null; final Member member = consul.agentClient().getAgent().getMember(); final String endpointId = endpointId(member, serviceId);
public ConsulAgentProducer(ConsulEndpoint endpoint, ConsulConfiguration configuration) { super(endpoint, configuration, Consul::agentClient); bind(ConsulAgentActions.CHECKS, wrap(c -> c.getChecks())); bind(ConsulAgentActions.SERVICES, wrap(c -> c.getServices())); bind(ConsulAgentActions.MEMBERS, wrap(c -> c.getMembers())); bind(ConsulAgentActions.AGENT, wrap(c -> c.getAgent())); } }