dev.vality.woody.api.ClientBuilder Maven / Gradle / Ivy
package dev.vality.woody.api;
import dev.vality.woody.api.event.ClientEventListener;
import dev.vality.woody.api.generator.IdGenerator;
import java.net.URI;
public interface ClientBuilder {
ClientBuilder withAddress(URI address);
ClientBuilder withEventListener(ClientEventListener listener);
ClientBuilder withIdGenerator(IdGenerator generator);
ClientBuilder withNetworkTimeout(int timeout);
URI getAddress();
ClientEventListener getEventListener();
IdGenerator getIdGenerator();
int getNetworkTimeout();
T build(Class iface);
}