public class ServiceManager extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static ServiceManager |
getInstance() |
RpcMethodInfo |
getService(String serviceMethodName) |
RpcMethodInfo |
getService(String serviceName,
String methodName) |
Map<String,RpcMethodInfo> |
getServiceMap() |
void |
registerPushService(Object service) |
void |
registerService(Class targetClass,
Object service,
ThreadPool threadPool) |
protected void |
registerService(Method[] methods,
Object service,
ThreadPool threadPool) |
void |
registerService(Object service) |
void |
registerService(Object service,
ThreadPool threadPool) |
protected void |
registerService(RpcMethodInfo methodInfo) |
public static ServiceManager getInstance()
public void registerService(Object service, ThreadPool threadPool)
public void registerService(Class targetClass, Object service, ThreadPool threadPool)
public void registerPushService(Object service)
public void registerService(Object service)
protected void registerService(Method[] methods, Object service, ThreadPool threadPool)
protected void registerService(RpcMethodInfo methodInfo)
public RpcMethodInfo getService(String serviceName, String methodName)
public RpcMethodInfo getService(String serviceMethodName)
public Map<String,RpcMethodInfo> getServiceMap()
Copyright © 2019 Baidu, Inc.. All rights reserved.