public interface ThriftClientProvider
| Modifier and Type | Method and Description |
|---|---|
CloseableThriftClient |
getCloseableClient()
Retrieve an AutoCloseable wrapper around tx client for exclusive use by the
current thread.
|
void |
initialize()
Initialize the provider.
|
void |
returnClient(TransactionServiceThriftClient client)
Release an tx client back to the provider's pool, if the client is valid.
|
void initialize()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCloseableThriftClient getCloseableClient() throws org.apache.thrift.TException, TimeoutException, InterruptedException
org.apache.thrift.TExceptionTimeoutExceptionInterruptedExceptionvoid returnClient(TransactionServiceThriftClient client)
client - The client to returnCopyright © 2017 The Apache Software Foundation. All rights reserved.