public class TcpHeader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
HEADER_SIZE |
static int |
MARKER_BYTES_SIZE |
static int |
MESSAGE_LENGTH_SIZE |
static int |
REQUEST_ID_SIZE |
static int |
STATUS_SIZE |
static int |
VERSION_ID_SIZE |
Constructor and Description |
---|
TcpHeader() |
Modifier and Type | Method and Description |
---|---|
static void |
writeHeader(StreamOutput output,
long requestId,
byte status,
Version version,
int messageSize) |
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 void writeHeader(StreamOutput output, long requestId, byte status, Version version, int messageSize) throws java.io.IOException
java.io.IOException