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 |
---|---|
StreamMessage.Type |
type |
Modifier | Constructor and Description |
---|---|
protected |
StreamMessage(StreamMessage.Type type) |
Modifier and Type | Method and Description |
---|---|
static StreamMessage |
deserialize(DataInputPlus in,
int version) |
StreamSession |
getOrCreateSession(io.netty.channel.Channel channel)
Get or create a
StreamSession based on this stream message data: not all stream messages support this,
so the default implementation just throws an exception. |
int |
getPriority() |
static void |
serialize(StreamMessage message,
DataOutputStreamPlus out,
int version,
StreamSession session) |
static long |
serializedSize(StreamMessage message,
int 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 long serializedSize(StreamMessage message, int version) throws java.io.IOException
java.io.IOException
public static StreamMessage deserialize(DataInputPlus in, int version) throws java.io.IOException
java.io.IOException
public int getPriority()
public StreamSession getOrCreateSession(io.netty.channel.Channel channel)
StreamSession
based on this stream message data: not all stream messages support this,
so the default implementation just throws an exception.Copyright © 2009-2021 The Apache Software Foundation