public class NettyRemotingProtocolHandle extends RemotingTcpProtocolHandle
| 限定符和类型 | 字段和说明 |
|---|---|
short |
contentDelimiter |
int |
majorVersion |
int |
minorVersion |
short |
operation |
String |
preamble |
HashMap<String,Object> |
transportHeaders |
_contentLength, _source| 构造器和说明 |
|---|
NettyRemotingProtocolHandle(org.jboss.netty.buffer.ChannelBuffer buffer) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected int |
ReadByte() |
protected byte[] |
ReadBytes(int length) |
short |
ReadContentDelimiter() |
int |
ReadContentLength() |
protected int |
ReadInt32() |
int |
ReadMajorVersion() |
int |
ReadMinorVersion() |
short |
ReadOperation() |
String |
ReadPreamble() |
HashMap<String,Object> |
ReadTransportHeaders() |
void |
setContentBuffer(org.jboss.netty.buffer.ChannelBuffer buffer) |
void |
setContentLength(int l) |
protected void |
WriteByte(byte value) |
protected void |
WriteBytes(byte[] value) |
protected void |
WriteInt32(int value) |
readExtendedHeader, writeExtendedHeaderReadCountedString, ReadUInt16, WriteContentDelimiter, WriteContentLength, WriteCountedString, WriteMajorVersion, WriteMinorVersion, WriteOperation, WritePreamble, WriteTransportHeaders, WriteUInt16ReadContent, WriteContentpublic String preamble
public int majorVersion
public int minorVersion
public short operation
public short contentDelimiter
public NettyRemotingProtocolHandle(org.jboss.netty.buffer.ChannelBuffer buffer)
public void setContentLength(int l)
public void setContentBuffer(org.jboss.netty.buffer.ChannelBuffer buffer)
public String ReadPreamble()
ReadPreamble 在类中 TcpProtocolHandlepublic int ReadMajorVersion()
ReadMajorVersion 在类中 TcpProtocolHandlepublic int ReadMinorVersion()
ReadMinorVersion 在类中 TcpProtocolHandlepublic short ReadOperation()
ReadOperation 在类中 TcpProtocolHandlepublic short ReadContentDelimiter()
public int ReadContentLength()
ReadContentLength 在类中 TcpProtocolHandlepublic HashMap<String,Object> ReadTransportHeaders() throws NotSupportedException
protected int ReadByte()
ReadByte 在类中 ProtocolStreamHandleprotected void WriteByte(byte value)
WriteByte 在类中 ProtocolStreamHandleprotected byte[] ReadBytes(int length)
ReadBytes 在类中 ProtocolStreamHandleprotected void WriteBytes(byte[] value)
WriteBytes 在类中 ProtocolStreamHandleprotected int ReadInt32()
ReadInt32 在类中 TcpProtocolHandleprotected void WriteInt32(int value)
WriteInt32 在类中 TcpProtocolHandleCopyright © 2020. All rights reserved.