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.TException
CloseableThriftClient getCloseableClient() throws org.apache.thrift.TException, TimeoutException, InterruptedException
org.apache.thrift.TException
TimeoutException
InterruptedException
void returnClient(TransactionServiceThriftClient client)
client
- The client to returnCopyright © 2016 The Apache Software Foundation. All rights reserved.