All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bitsofinfo.hazelcast.discovery.consul.ConsulBuilder Maven / Gradle / Ivy

Go to download

hazelcast-consul-discovery-spi - Consul based discovery strategy SPI for Hazelcast enabled applications

The newest version!
package org.bitsofinfo.hazelcast.discovery.consul;

import com.orbitz.consul.Consul;

/**
 * Interface for a client Consul builder. We use this to build all consul clients.
 * Currently supported clients are: agent, health and catalog
 * 
 * @author bmudda
 *
 */
public interface ConsulBuilder{
	
	/**
	 * Method to build a consul client given optional TLS information
	 * 
	 * @param consulHost
	 * @param consulPort
	 * @param consulSslEnabled
	 * @param consulSslServerCertFilePath
	 * @param consulSslServerCertBase64
	 * @param consulServerHostnameVerify
	 * @return a Consul client
	 * @throws Exception
	 */
	public Consul buildConsul (
				String consulHost,
				Integer consulPort,
				boolean consulSslEnabled,
				String	consulSslServerCertFilePath,
				String consulSslServerCertBase64,
				boolean consulServerHostnameVerify,
				String consulAclToken
			) throws Exception;
	
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy