com.lowdad.thrift.client.builder.K8ServiceThriftClientBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rpc-client Show documentation
Show all versions of rpc-client Show documentation
RPC client for k8s services
The newest version!
package com.lowdad.thrift.client.builder;
import com.lowdad.thrift.client.K8ServiceKey;
import com.lowdad.thrift.client.K8ServiceThriftClient;
import org.apache.thrift.TServiceClient;
/**
* @author lowdad
*/
public class K8ServiceThriftClientBuilder {
private final K8ServiceThriftClient client = new K8ServiceThriftClient<>();
protected K8ServiceThriftClient build() {
client.init();
return client;
}
protected K8ServiceThriftClientBuilder setK8ServiceKey(K8ServiceKey key) {
client.setK8ServiceKey(key);
return this;
}
protected K8ServiceThriftClientBuilder setThriftClass(Class> thriftClass) {
client.setThriftClass(thriftClass);
return this;
}
}