io.dropwizard.discovery.core.ServiceInstanceFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-discovery Show documentation
Show all versions of dropwizard-discovery Show documentation
Service discovery for Dropwizard using Curator
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;
}