| 限定符和类型 | 方法和说明 |
|---|---|
RemoteInvoker |
classLoader(ClassLoader classLoader) |
static RemoteInvoker |
create(Remote remote) |
<T> T |
get(Class<T> serviceClass)
获取指定类型的对象
|
RemoteInvoker |
serviceName(String serviceName)
自定义服务名称
|
RemoteInvoker |
simpleNameIfNull()
如果未设置服务名称就使用serviceClass的simpleName
|
RemoteInvoker |
timeout(int timeout)
设置超时时间,0表示永不超时。
|
public static RemoteInvoker create(Remote remote)
public RemoteInvoker serviceName(String serviceName)
serviceName - 服务名称public RemoteInvoker simpleNameIfNull()
public RemoteInvoker classLoader(ClassLoader classLoader)
classLoader - public RemoteInvoker timeout(int timeout)
timeout - public <T> T get(Class<T> serviceClass)
serviceClass - Copyright © 2018. All rights reserved.