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

com.lowdad.thrift.client.builder.K8ServiceThriftClientBuilder Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy