io.dropwizard.discovery.core.ServiceInstanceFactory Maven / Gradle / Ivy
package io.dropwizard.discovery.core;
import org.apache.curator.x.discovery.ServiceInstance;
/**
* Factory class to create ServiceInstance
for the service.
*
* @param
* payload class
*/
public interface ServiceInstanceFactory {
public Class getPayloadClass();
public ServiceInstance build(String serviceName,
CuratorAdvertiser advertiser) throws Exception;
}