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
Streaming protocol version
|
StreamMessage.Type |
type |
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,
java.nio.channels.WritableByteChannel out,
int version,
StreamSession session) |
public static final int CURRENT_VERSION
public final StreamMessage.Type type
protected StreamMessage(StreamMessage.Type type)
public static void serialize(StreamMessage message, java.nio.channels.WritableByteChannel 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 © 2013 The Apache Software Foundation