Examples of TNiftyClientChannelTransport


Examples of com.facebook.nifty.client.TNiftyClientChannelTransport

        pool = new GenericKeyedObjectPool<>(new BaseKeyedPooledObjectFactory<InetSocketAddress, TNiftyClientChannelTransport>() {
            @Override
            public TNiftyClientChannelTransport create(InetSocketAddress key) throws Exception {
                log.debug("Connecting to {}", key);
                final FramedClientConnector connector = new FramedClientConnector(key, duplexProtocolFactory);
                final TNiftyClientChannelTransport transport =
                    config.niftyClient.connectSync(
                            config.clientClass,
                            connector,
                            config.connectTimeout,
                            config.receiveTimeout,
View Full Code Here

Examples of com.facebook.nifty.client.TNiftyClientChannelTransport

     * @param socketAddress the remote hostname/IP and port of the remote endpoint
     * @return the new connection wrapped in a Thrift transport
     * @throws Exception
     */
    public TTransport getTransport(final InetSocketAddress socketAddress) throws Exception {
        final TNiftyClientChannelTransport transport = pool.borrowObject(socketAddress);
        return new TTransportShell(socketAddress, transport);
    }
View Full Code Here

Examples of com.facebook.nifty.client.TNiftyClientChannelTransport

     * @param timeout          the borrow timeout
     * @return the new connection wrapped in a Thrift transport
     * @throws Exception
     */
    public TTransport getTransport(final InetSocketAddress socketAddress, final Duration timeout) throws Exception {
        final TNiftyClientChannelTransport transport = pool.borrowObject(socketAddress, timeout.toMillis());
        return new TTransportShell(socketAddress, transport);
    }
View Full Code Here

Examples of com.facebook.nifty.client.TNiftyClientChannelTransport

        pool = new GenericKeyedObjectPool<>(new BaseKeyedPooledObjectFactory<InetSocketAddress, TNiftyClientChannelTransport>() {
            @Override
            public TNiftyClientChannelTransport create(InetSocketAddress key) throws Exception {
                log.debug("Connecting to {}", key);
                final FramedClientConnector connector = new FramedClientConnector(key, duplexProtocolFactory);
                final TNiftyClientChannelTransport transport =
                    config.niftyClient.connectSync(
                            config.clientClass,
                            connector,
                            config.connectTimeout,
                            config.receiveTimeout,
View Full Code Here

Examples of com.facebook.nifty.client.TNiftyClientChannelTransport

     * @param socketAddress the remote hostname/IP and port of the remote endpoint
     * @return the new connection wrapped in a Thrift transport
     * @throws Exception
     */
    public TTransport getTransport(final InetSocketAddress socketAddress) throws Exception {
        final TNiftyClientChannelTransport transport = pool.borrowObject(socketAddress);
        return new TTransportShell(socketAddress, transport);
    }
View Full Code Here

Examples of com.facebook.nifty.client.TNiftyClientChannelTransport

     * @param timeout          the borrow timeout
     * @return the new connection wrapped in a Thrift transport
     * @throws Exception
     */
    public TTransport getTransport(final InetSocketAddress socketAddress, final Duration timeout) throws Exception {
        final TNiftyClientChannelTransport transport = pool.borrowObject(socketAddress, timeout.toMillis());
        return new TTransportShell(socketAddress, transport);
    }
View Full Code Here

Examples of com.facebook.nifty.client.TNiftyClientChannelTransport

        pool = new GenericKeyedObjectPool<>(new BaseKeyedPooledObjectFactory<InetSocketAddress, TNiftyClientChannelTransport>() {
            @Override
            public TNiftyClientChannelTransport create(InetSocketAddress key) throws Exception {
                log.debug("Connecting to {}", key);
                final FramedClientConnector connector = new FramedClientConnector(key, duplexProtocolFactory);
                final TNiftyClientChannelTransport transport =
                    config.niftyClient.connectSync(
                            config.clientClass,
                            connector,
                            config.connectTimeout,
                            config.receiveTimeout,
View Full Code Here

Examples of com.facebook.nifty.client.TNiftyClientChannelTransport

     * @param socketAddress the remote hostname/IP and port of the remote endpoint
     * @return the new connection wrapped in a Thrift transport
     * @throws Exception
     */
    public TTransport getTransport(final InetSocketAddress socketAddress) throws Exception {
        final TNiftyClientChannelTransport transport = pool.borrowObject(socketAddress);
        return new TTransportShell(socketAddress, transport);
    }
View Full Code Here

Examples of com.facebook.nifty.client.TNiftyClientChannelTransport

     * @param timeout          the borrow timeout
     * @return the new connection wrapped in a Thrift transport
     * @throws Exception
     */
    public TTransport getTransport(final InetSocketAddress socketAddress, final Duration timeout) throws Exception {
        final TNiftyClientChannelTransport transport = pool.borrowObject(socketAddress, timeout.toMillis());
        return new TTransportShell(socketAddress, transport);
    }
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.