/** * Registers the client as a service with Consul with multiple checks * * @param port The public facing port of the service to register with Consul. * @param checks The health checks to run periodically. * @param name Service name to register. * @param id Service id to register. * @param tags Tags to register with. * @param meta Meta to register with. */ public void register(int port, List<Registration.RegCheck> checks, String name, String id, List<String> tags, Map<String, String> meta) { Registration registration = ImmutableRegistration .builder() .port(port) .checks(checks) .name(name) .id(id) .tags(tags) .meta(meta) .build(); register(registration); }