public class MuxGenerator extends Object
Constructor and Description |
---|
MuxGenerator() |
MuxGenerator(ByteBufferPool bufferPool) |
Modifier and Type | Method and Description |
---|---|
Future<javax.net.websocket.SendResult> |
generate(long channelId,
Frame frame) |
void |
generate(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 Future<javax.net.websocket.SendResult> generate(long channelId, Frame frame) throws IOException
IOException
public void generate(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-2012 Mort Bay Consulting. All Rights Reserved.