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

org.rx.net.rpc.RpcClientPool Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package org.rx.net.rpc;

import org.rx.net.rpc.impl.NonClientPool;
import org.rx.net.rpc.impl.RpcClientPoolImpl;
import org.rx.net.rpc.impl.StatefulRpcClient;

public interface RpcClientPool {
    static RpcClientPool createPool(RpcClientConfig config) {
        if (!config.isUsePool()) {
            return new NonClientPool(config);
        }
        return new RpcClientPoolImpl(config);
    }

    StatefulRpcClient borrowClient();

    StatefulRpcClient returnClient(StatefulRpcClient client);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy