public abstract class StreamMessage
extends java.lang.Object
StreamMessage.Type
) and streaming protocol version byte.Modifier and Type | Class and Description |
---|---|
static interface |
StreamMessage.Serializer<V extends StreamMessage>
StreamMessage serializer
|
static class |
StreamMessage.Type
StreamMessage types
|
Modifier and Type | Field and Description |
---|---|
static int |
CURRENT_VERSION |
StreamMessage.Type |
type |
static int |
VERSION_20
Streaming protocol version
|
static int |
VERSION_22 |
static int |
VERSION_30 |
Modifier | Constructor and Description |
---|---|
protected |
StreamMessage(StreamMessage.Type type) |
Modifier and Type | Method and Description |
---|---|
static StreamMessage |
deserialize(java.nio.channels.ReadableByteChannel in,
int version,
StreamSession session) |
int |
getPriority() |
static void |
serialize(StreamMessage message,
DataOutputStreamPlus out,
int version,
StreamSession session) |
public static final int VERSION_20
public static final int VERSION_22
public static final int VERSION_30
public static final int CURRENT_VERSION
public final StreamMessage.Type type
protected StreamMessage(StreamMessage.Type type)
public static void serialize(StreamMessage message, DataOutputStreamPlus out, int version, StreamSession session) throws java.io.IOException
java.io.IOException
public static StreamMessage deserialize(java.nio.channels.ReadableByteChannel in, int version, StreamSession session) throws java.io.IOException
java.io.IOException
public int getPriority()
Copyright © 2016 The Apache Software Foundation