public interface ThriftServiceFactory
限定符和类型 | 方法和说明 |
---|---|
AsyncService |
getAsyncService(org.apache.thrift.transport.TNonblockingTransport transport)
获取客户端异步Service对象
如果需要使用负载均衡,则每次需要调用此方法重新获取服务对象.
|
AsyncService |
getAsyncService(org.apache.thrift.transport.TNonblockingTransport transport,
String serviceName)
获取客户端异步Service对象
|
Service |
getService(ThriftClient thriftClient)
获取客户端Service对象
如果需要使用负载均衡,则每次需要调用此方法重新获取服务对象.
|
Service |
getService(ThriftClient thriftClient,
String serviceName)
获取客户端Service对象
|
Service getService(ThriftClient thriftClient) throws IkasoaException
如果需要使用负载均衡,则每次需要调用此方法重新获取服务对象.
thriftClient
- Thrift客户端IkasoaException
- 异常AsyncService getAsyncService(org.apache.thrift.transport.TNonblockingTransport transport) throws IkasoaException
如果需要使用负载均衡,则每次需要调用此方法重新获取服务对象.
transport
- 传输对象IkasoaException
- 异常Service getService(ThriftClient thriftClient, String serviceName) throws IkasoaException
thriftClient
- Thrift客户端serviceName
- 服务名IkasoaException
- 异常AsyncService getAsyncService(org.apache.thrift.transport.TNonblockingTransport transport, String serviceName) throws IkasoaException
transport
- 传输对象serviceName
- 服务名IkasoaException
- 异常Copyright © 2016–2019. All rights reserved.