| Package | Description |
|---|---|
| com.taobao.hsf.lightapi |
| Modifier and Type | Method and Description |
|---|---|
ConsumerService |
ConsumerService.callbackMethod(String methodName,
Object listener)
增加一个通过callback方式调用的方法
|
ConsumerService |
ServiceFactory.consumer(String id)
获取一个HSF服务消费者实例,非HSFConsumerProviderBean。
会缓存消费过的服务!
|
ConsumerService |
ConsumerService.futureMethod(String methodName)
增加一个通过future方式调用的方法
|
ConsumerService |
ConsumerService.generic() |
ConsumerService |
ConsumerService.group(String group)
设置要提供的HSF服务的组别
|
ConsumerService |
ConsumerService.methodTimeout(String methodName,
int timeout)
针对某个方法设置单独的超时时间
|
ConsumerService |
ConsumerService.newConsumer() |
ConsumerService |
ConsumerService.service(String service)
设置要提供的HSF服务名
|
ConsumerService |
ConsumerService.targetIp(String ip)
指定IP调用
|
ConsumerService |
ConsumerService.timeout(int timeout)
统一设置所有服务的超时时间ͳ
|
ConsumerService |
ConsumerService.version(String version)
设置要提供的HSF服务的版本号
|
| Modifier and Type | Method and Description |
|---|---|
List<ConsumerService> |
ServiceFactory.consumers()
返回所有通过LightApi消费的服务消费者
|
Copyright © 2017. All rights reserved.