| 程序包 | 说明 |
|---|---|
| com.alipay.remoting | |
| com.alipay.remoting.rpc | |
| com.alipay.remoting.rpc.protocol |
| 限定符和类型 | 方法和说明 |
|---|---|
UserProcessor<?> |
RemotingContext.getUserProcessor(String className)
Get user processor for class name.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RemotingServer.registerUserProcessor(UserProcessor<?> processor)
Register user processor.
|
void |
BoltClient.registerUserProcessor(UserProcessor<?> processor)
Use UserProcessorRegisterHelper
UserProcessorRegisterHelper to help register user processor for client side. |
| 构造器和说明 |
|---|
RemotingContext(io.netty.channel.ChannelHandlerContext ctx,
boolean serverSide,
ConcurrentHashMap<String,UserProcessor<?>> userProcessors)
Constructor.
|
RemotingContext(io.netty.channel.ChannelHandlerContext ctx,
InvokeContext invokeContext,
boolean serverSide,
ConcurrentHashMap<String,UserProcessor<?>> userProcessors)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RpcServer.registerUserProcessor(UserProcessor<?> processor)
Use UserProcessorRegisterHelper
UserProcessorRegisterHelper to help register user processor for server side. |
void |
RpcClient.registerUserProcessor(UserProcessor<?> processor) |
| 构造器和说明 |
|---|
RpcConnectionFactory(ConcurrentHashMap<String,UserProcessor<?>> userProcessors,
ConfigurableInstance configInstance) |
RpcHandler(boolean serverSide,
ConcurrentHashMap<String,UserProcessor<?>> userProcessors) |
RpcHandler(ConcurrentHashMap<String,UserProcessor<?>> userProcessors) |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
MultiInterestUserProcessor<T>
Support multi-interests feature based on UserProcessor
The implementations of this interface don't need to implement the
interest() method; |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractMultiInterestUserProcessor<T>
Implements common function and provide default value.
|
class |
AbstractUserProcessor<T>
Implements common function and provide default value.
|
class |
AsyncMultiInterestUserProcessor<T>
Extends this to process user defined request in ASYNC way.
|
class |
AsyncUserProcessor<T>
Extends this to process user defined request in ASYNC way.
|
class |
SyncMultiInterestUserProcessor<T>
Extends this to process user defined request in SYNC way.
|
class |
SyncUserProcessor<T>
Extends this to process user defined request in SYNC way.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
UserProcessorRegisterHelper.registerUserProcessor(UserProcessor<?> processor,
ConcurrentHashMap<String,UserProcessor<?>> userProcessors)
Help register single-interest user processor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
UserProcessorRegisterHelper.registerUserProcessor(UserProcessor<?> processor,
ConcurrentHashMap<String,UserProcessor<?>> userProcessors)
Help register single-interest user processor.
|
Copyright © 2020. All rights reserved.