Examples of NettyClientConfigBuilder


Examples of com.facebook.nifty.client.NettyClientConfigBuilder

    Duration sendTimeout = new Duration(5, TimeUnit.SECONDS);
    TProtocolFactory protocolFactory = new TCompactProtocol.Factory(maxFrameSize);
    TNiftyClientTransportValidator checkTransport;

    public TNiftyClientChannelTransportPoolConfig(final Class<? extends TServiceClient> clientClass) {
        this(new NettyClientConfigBuilder().build(), clientClass);
    }
View Full Code Here

Examples of com.facebook.nifty.client.NettyClientConfigBuilder

    public TNiftyClientChannelTransportPoolConfig(final Class<? extends TServiceClient> clientClass) {
        this(new NettyClientConfigBuilder().build(), clientClass);
    }

    public TNiftyClientChannelTransportPoolConfig(final int bossThreads, final int workerThreads, final Class<? extends TServiceClient> clientClass) {
        this(new NettyClientConfigBuilder().setWorkerThreadCount(workerThreads).setBossThreadCount(bossThreads).build(), clientClass);
    }
View Full Code Here

Examples of com.facebook.nifty.client.NettyClientConfigBuilder

    private final TServiceClientFactory<T> serviceClientFactory;
    private final TProtocolFactory protocolFactory;

    public NiftyThriftClientService(final Class<? extends T> type,
                                    final TServiceClientFactory<T> serviceClientFactory) {
        this(type, serviceClientFactory, new TCompactProtocol.Factory(), new NettyClientConfigBuilder().build());
    }
View Full Code Here

Examples of com.facebook.nifty.client.NettyClientConfigBuilder

    private final TServiceClientFactory<T> serviceClientFactory;
    private final TProtocolFactory protocolFactory;

    public NiftyThriftClientService(final Class<? extends T> type,
                                    final TServiceClientFactory<T> serviceClientFactory) {
        this(type, serviceClientFactory, new TCompactProtocol.Factory(), new NettyClientConfigBuilder().build());
    }
View Full Code Here

Examples of com.facebook.nifty.client.NettyClientConfigBuilder

    Duration sendTimeout = new Duration(5, TimeUnit.SECONDS);
    TProtocolFactory protocolFactory = new TBinaryProtocol.Factory();
    TNiftyClientTransportValidator checkTransport;

    public TNiftyClientChannelTransportPoolConfig(final Class<? extends TServiceClient> clientClass) {
        this(new NettyClientConfigBuilder().build(), clientClass);
    }
View Full Code Here

Examples of com.facebook.nifty.client.NettyClientConfigBuilder

    public TNiftyClientChannelTransportPoolConfig(final Class<? extends TServiceClient> clientClass) {
        this(new NettyClientConfigBuilder().build(), clientClass);
    }

    public TNiftyClientChannelTransportPoolConfig(final int bossThreads, final int workerThreads, final Class<? extends TServiceClient> clientClass) {
        this(new NettyClientConfigBuilder().setWorkerThreadCount(workerThreads).setBossThreadCount(bossThreads).build(), clientClass);
    }
View Full Code Here

Examples of com.facebook.nifty.client.NettyClientConfigBuilder

    Duration sendTimeout = new Duration(5, TimeUnit.SECONDS);
    TProtocolFactory protocolFactory = new TCompactProtocol.Factory(maxFrameSize);
    TNiftyClientTransportValidator checkTransport;

    public ThriftClientConnectionPoolConfig(final Class<T> clientClass, final Class<U> serviceInterface) {
        this(new NettyClientConfigBuilder().build(), clientClass, serviceInterface);
    }
View Full Code Here

Examples of com.facebook.nifty.client.NettyClientConfigBuilder

    public ThriftClientConnectionPoolConfig(final Class<T> clientClass, final Class<U> serviceInterface) {
        this(new NettyClientConfigBuilder().build(), clientClass, serviceInterface);
    }

    public ThriftClientConnectionPoolConfig(final int bossThreads, final int workerThreads, final Class<T> clientClass, final Class<U> serviceInterface) {
        this(new NettyClientConfigBuilder().setWorkerThreadCount(workerThreads).setBossThreadCount(bossThreads).build(), clientClass, serviceInterface);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.