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) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
TransactionServiceThriftClient |
getThriftClient() |
public CloseableThriftClient(ThriftClientProvider provider, TransactionServiceThriftClient thriftClient)
public TransactionServiceThriftClient getThriftClient()
public void close()
close in interface AutoCloseableCopyright © 2018 The Apache Software Foundation. All rights reserved.