public class MuxGenerator extends Object
Constructor and Description |
---|
MuxGenerator() |
MuxGenerator(ByteBufferPool bufferPool) |
Modifier and Type | Method and Description |
---|---|
void |
generate(long channelId,
Frame frame,
WriteCallback callback) |
void |
generate(WriteCallback callback,
MuxControlBlock... blocks) |
OutgoingFrames |
getOutgoing() |
void |
setOutgoing(OutgoingFrames outgoing) |
void |
write139Buffer(ByteBuffer payload,
ByteBuffer buffer)
Write a 1/3/9 encoded size, then a byte buffer of that size.
|
void |
write139Size(ByteBuffer payload,
long size)
Write a 1/3/9 encoded size.
|
void |
writeBuffer(ByteBuffer payload,
ByteBuffer buffer) |
void |
writeChannelId(ByteBuffer payload,
long channelId)
Write multiplexing channel id, using logical channel id encoding (of 1,2,3, or 4 octets)
|
public MuxGenerator()
public MuxGenerator(ByteBufferPool bufferPool)
public void generate(long channelId, Frame frame, WriteCallback callback)
public void generate(WriteCallback callback, MuxControlBlock... blocks) throws IOException
IOException
public OutgoingFrames getOutgoing()
public void setOutgoing(OutgoingFrames outgoing)
public void write139Buffer(ByteBuffer payload, ByteBuffer buffer)
payload
- buffer
- public void write139Size(ByteBuffer payload, long size)
payload
- size
- public void writeBuffer(ByteBuffer payload, ByteBuffer buffer)
public void writeChannelId(ByteBuffer payload, long channelId)
payload
- channelId
- Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.