public class NettyHeader extends Object
Modifier and Type | Field and Description |
---|---|
static int |
HEADER_SIZE |
static int |
MARKER_BYTES_SIZE |
static int |
MESSAGE_LENGTH_SIZE |
static int |
PING_DATA_SIZE
The magic number (must be lower than 0) for a ping message.
|
static int |
REQUEST_ID_SIZE |
static int |
STATUS_SIZE |
static int |
VERSION_ID_SIZE |
Constructor and Description |
---|
NettyHeader() |
Modifier and Type | Method and Description |
---|---|
static org.jboss.netty.buffer.ChannelBuffer |
pingHeader()
A ping header is same as regular header, just with -1 for the size of the message.
|
static void |
writeHeader(org.jboss.netty.buffer.ChannelBuffer buffer,
long requestId,
byte status,
Version version) |
public static final int MARKER_BYTES_SIZE
public static final int MESSAGE_LENGTH_SIZE
public static final int REQUEST_ID_SIZE
public static final int STATUS_SIZE
public static final int VERSION_ID_SIZE
public static final int HEADER_SIZE
public static final int PING_DATA_SIZE
SizeHeaderFrameDecoder
.public static org.jboss.netty.buffer.ChannelBuffer pingHeader()
public static void writeHeader(org.jboss.netty.buffer.ChannelBuffer buffer, long requestId, byte status, Version version)
Copyright © 2009–2016. All rights reserved.