Package com.facebook.nifty.client

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


     * @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

     * @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

        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

     * @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

     * @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

        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

     * @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

     * @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

Related Classes of com.facebook.nifty.client.TNiftyClientChannelTransport

Copyright © 2018 www.massapicom. 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.