public class ClusterInvokerManager extends java.lang.Object implements ClusterInvokerFactory
限定符和类型 | 方法和说明 |
---|---|
ClusterInvoker |
create(java.lang.Class clazz,
CommonSerializer<?>... serializers)
静态方法调用器,底层不会实例化,无法调用非静态方法
仅适用于无法实例化的场景
|
ClusterInvoker |
create(java.lang.Class clazz,
long timeout,
CommonSerializer<?>... serializers)
设置调用的超时时间
|
ClusterInvoker |
create(java.lang.Object singleton,
CommonSerializer<?>... serializers)
单例方法调用器,也可以调用静态方法
|
ClusterInvoker |
create(java.lang.Object singleton,
long timeout,
CommonSerializer<?>... serializers)
设置调用的超时时间
|
static ClusterInvokerManager |
getInstance() |
public static ClusterInvokerManager getInstance()
public ClusterInvoker create(java.lang.Class clazz, CommonSerializer<?>... serializers)
ClusterInvokerFactory
create
在接口中 ClusterInvokerFactory
public ClusterInvoker create(java.lang.Class clazz, long timeout, CommonSerializer<?>... serializers)
ClusterInvokerFactory
create
在接口中 ClusterInvokerFactory
public ClusterInvoker create(java.lang.Object singleton, CommonSerializer<?>... serializers)
ClusterInvokerFactory
create
在接口中 ClusterInvokerFactory
public ClusterInvoker create(java.lang.Object singleton, long timeout, CommonSerializer<?>... serializers)
ClusterInvokerFactory
create
在接口中 ClusterInvokerFactory