public abstract class WebSocket07FrameSinkChannel extends StreamSinkFrameChannel
StreamSinkFrameChannel
implementation for writing WebSocket Frames on WebSocketVersion.V08
connectionsModifier | Constructor and Description |
---|---|
protected |
WebSocket07FrameSinkChannel(WebSocket07Channel wsChannel,
WebSocketFrameType type,
long payloadSize) |
Modifier and Type | Method and Description |
---|---|
protected void |
channelForciblyClosed()
If a stream sink channel is closed while in the middle of sending fragmented data we need to close the connection.
|
protected SendFrameHeader |
createFrameHeader() |
protected void |
handleFlushComplete(boolean finalFrame) |
int |
write(ByteBuffer src) |
long |
write(ByteBuffer[] srcs) |
long |
write(ByteBuffer[] srcs,
int offset,
int length) |
areExtensionsSupported, getRsv, getType, getWebSocketChannel, isFinalFragment, isFragmentationSupported, isLastFrame, setRsv
awaitWritable, awaitWritable, close, createFrameFooter, flush, getBuffer, getChannel, getCloseSetter, getIoThread, getOption, getWorker, getWriteSetter, getWriteThread, isBroken, isFinalFrameQueued, isFirstDataWritten, isOpen, isReadyForFlush, isWriteResumed, isWritesShutdown, markBroken, resumeWrites, resumeWritesInternal, setOption, shutdownWrites, supportsOption, suspendWrites, transferFrom, transferFrom, wakeupWrites, writeFinal, writeFinal, writeFinal
protected WebSocket07FrameSinkChannel(WebSocket07Channel wsChannel, WebSocketFrameType type, long payloadSize)
protected void handleFlushComplete(boolean finalFrame)
protected void channelForciblyClosed() throws IOException
channelForciblyClosed
in class AbstractFramedStreamSinkChannel<WebSocketChannel,StreamSourceFrameChannel,StreamSinkFrameChannel>
IOException
protected SendFrameHeader createFrameHeader()
public long write(ByteBuffer[] srcs) throws IOException
write
in interface GatheringByteChannel
write
in class AbstractFramedStreamSinkChannel<WebSocketChannel,StreamSourceFrameChannel,StreamSinkFrameChannel>
IOException
public long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write
in interface GatheringByteChannel
write
in class AbstractFramedStreamSinkChannel<WebSocketChannel,StreamSourceFrameChannel,StreamSinkFrameChannel>
IOException
public int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
write
in class AbstractFramedStreamSinkChannel<WebSocketChannel,StreamSourceFrameChannel,StreamSinkFrameChannel>
IOException
Copyright © 2015 JBoss by Red Hat. All rights reserved.