public abstract class WebSocket07FrameSinkChannel extends StreamSinkFrameChannel
StreamSinkFrameChannel implementation for writing WebSocket Frames on WebSocketVersion.V08 connectionsStreamSinkFrameChannel.ChannelStatechannel, 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, write0protected WebSocket07FrameSinkChannel(org.xnio.channels.StreamSinkChannel channel,
WebSocket07Channel wsChannel,
WebSocketFrameType type,
long payloadSize)
protected ByteBuffer createFrameStart()
StreamSinkFrameChannelByteBuffer that will be written as start of the frame.
createFrameStart in class StreamSinkFrameChannelByteBuffer which will be used to start a frameprotected void frameStartComplete()
StreamSinkFrameChannelframeStartComplete in class StreamSinkFrameChannelprotected ByteBuffer createFrameEnd()
StreamSinkFrameChannelByteBuffer that marks the end of the framecreateFrameEnd in class StreamSinkFrameChannelByteBuffer that marks the end of the framepublic long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write in interface GatheringByteChannelwrite in class StreamSinkFrameChannelIOExceptionprotected long transferFrom0(FileChannel src, long position, long count) throws IOException
transferFrom0 in class StreamSinkFrameChannelIOExceptionStreamSinkChannel.transferFrom(FileChannel, long, long)Copyright © 2013 JBoss by Red Hat. All Rights Reserved.