| 程序包 | 说明 |
|---|---|
| com.weibo.api.motan.codec | |
| com.weibo.api.motan.protocol.rpc | |
| com.weibo.api.motan.protocol.v2motan | |
| com.weibo.api.motan.transport |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
Codec.decode(Channel channel,
String remoteIp,
byte[] buffer) |
byte[] |
Codec.encode(Channel channel,
Object message) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
DefaultRpcCodec.decode(Channel channel,
String remoteIp,
byte[] data)
decode data
对于client端:主要是来自server端的response or exception
对于server端: 主要是来自client端的request
|
Object |
CompressRpcCodec.decode(Channel channel,
String remoteIp,
byte[] data)
decode data
对于client端:主要是来自server端的response or exception
对于server端: 主要是来自client端的request
|
Object |
CompressRpcCodec.decodeV2(Channel channel,
String remoteIp,
byte[] data)
decode data
对于client端:主要是来自server端的response or exception
对于server端: 主要是来自client端的request
|
byte[] |
DefaultRpcCodec.encode(Channel channel,
Object message) |
byte[] |
CompressRpcCodec.encode(Channel channel,
Object message) |
byte[] |
CompressRpcCodec.encodeV2(Channel channel,
Object message) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
MotanV2Codec.decode(Channel channel,
String remoteIp,
byte[] data)
decode data
|
byte[] |
MotanV2Codec.encode(Channel channel,
Object message) |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
Client
类说明
|
interface |
Endpoint
Endpoint of client or server.
|
interface |
Server |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractClient |
class |
AbstractPoolClient |
class |
AbstractServer |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Channel |
AbstractPoolClient.borrowObject() |
Channel |
Server.getChannel(InetSocketAddress remoteAddress)
get channel.
|
Channel |
AbstractServer.getChannel(InetSocketAddress remoteAddress) |
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<Channel> |
Server.getChannels()
get channels.
|
Collection<Channel> |
AbstractServer.getChannels() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
ProviderMessageRouter.handle(Channel channel,
Object message) |
Object |
MessageHandler.handle(Channel channel,
Object message) |
protected void |
AbstractPoolClient.invalidateObject(Channel nettyChannel) |
protected void |
AbstractPoolClient.returnObject(Channel channel) |
Copyright © 2017. All rights reserved.