public interface ThriftClientProvider
| Modifier and Type | Method and Description |
|---|---|
void |
discardClient(TransactionServiceThriftClient client)
Discard an tx client from the provider's pool.
|
TransactionServiceThriftClient |
getClient()
Retrieve an 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.
|
void initialize()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionTransactionServiceThriftClient getClient() throws org.apache.thrift.TException
org.apache.thrift.TExceptionvoid returnClient(TransactionServiceThriftClient client)
client - The client to releasevoid discardClient(TransactionServiceThriftClient client)
client - The client to discardCopyright © 2015. All Rights Reserved.