public class CloseableThriftClient extends Object implements AutoCloseable
AutoCloseable
to automatically return the thrift client to the ThriftClientProvider.Constructor and Description |
---|
CloseableThriftClient(ThriftClientProvider provider,
TransactionServiceThriftClient thriftClient) |
public CloseableThriftClient(ThriftClientProvider provider, TransactionServiceThriftClient thriftClient)
public TransactionServiceThriftClient getThriftClient()
public void close()
close
in interface AutoCloseable
Copyright © 2016 The Apache Software Foundation. All rights reserved.