public abstract class WebSocket07FrameSinkChannel extends StreamSinkFrameChannel
StreamSinkFrameChannel
implementation for writing WebSocket Frames on WebSocketVersion.V08
connectionsStreamSinkFrameChannel.ChannelState
channel, payloadSize, wsChannel
Modifier | Constructor and Description |
---|---|
protected |
WebSocket07FrameSinkChannel(org.xnio.channels.StreamSinkChannel channel,
WebSocket07Channel wsChannel,
WebSocketFrameType type,
long payloadSize) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuffer |
createFrameEnd()
Create the
ByteBuffer that marks the end of the frame |
protected ByteBuffer |
createFrameStart()
Create the
ByteBuffer that will be written as start of the frame. |
protected void |
frameStartComplete()
Is called once the start of the frame was witten.
|
protected long |
transferFrom0(FileChannel src,
long position,
long count) |
long |
write(ByteBuffer[] srcs,
int offset,
int length) |
activate, areExtensionsSupported, awaitWritable, awaitWritable, bytesToWrite, checkClosed, close, endFrameComplete, flush, flush0, getCloseSetter, getIoThread, getOption, getPayloadSize, getRsv, getState, getType, getWebSocketChannel, getWorker, getWriteSetter, getWriteThread, isActive, isFinalFragment, isFragmentationSupported, isOpen, isWriteResumed, resumeWrites, setFinalFragment, setOption, setRsv, shutdownWrites, supportsOption, suspendWrites, transferFrom, transferFrom, wakeupWrites, write, write, write0
protected WebSocket07FrameSinkChannel(org.xnio.channels.StreamSinkChannel channel, WebSocket07Channel wsChannel, WebSocketFrameType type, long payloadSize)
protected ByteBuffer createFrameStart()
StreamSinkFrameChannel
ByteBuffer
that will be written as start of the frame.
createFrameStart
in class StreamSinkFrameChannel
ByteBuffer
which will be used to start a frameprotected void frameStartComplete()
StreamSinkFrameChannel
frameStartComplete
in class StreamSinkFrameChannel
protected ByteBuffer createFrameEnd()
StreamSinkFrameChannel
ByteBuffer
that marks the end of the framecreateFrameEnd
in class StreamSinkFrameChannel
ByteBuffer
that marks the end of the framepublic long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write
in interface GatheringByteChannel
write
in class StreamSinkFrameChannel
IOException
protected long transferFrom0(FileChannel src, long position, long count) throws IOException
transferFrom0
in class StreamSinkFrameChannel
IOException
StreamSinkChannel.transferFrom(FileChannel, long, long)
Copyright © 2013 JBoss by Red Hat. All rights reserved.