public abstract class StreamSinkFrameChannel extends AbstractFramedStreamSinkChannel<WebSocketChannel,StreamSourceFrameChannel,StreamSinkFrameChannel>
Modifier | Constructor and Description |
---|---|
protected | StreamSinkFrameChannel(WebSocketChannel channel, WebSocketFrameType type) |
Modifier and Type | Method and Description |
---|---|
boolean | areExtensionsSupported() true if extensions are supported for the WebSocketFrameType . |
int | getRsv() Return the RSV for the extension. |
WebSocketFrameType | getType() Return the WebSocketFrameType for which the StreamSinkFrameChannel was obtained. |
WebSocketChannel | getWebSocketChannel() |
boolean | isFinalFragment() |
boolean | isFragmentationSupported() true if fragmentation is supported for the WebSocketFrameType . |
protected boolean | isLastFrame() |
void | setRsv(int rsv) Set the RSV which is used for extensions. |
awaitWritable, awaitWritable, channelForciblyClosed, close, createFrameFooter, createFrameHeader, flush, getBuffer, getChannel, getCloseSetter, getIoThread, getOption, getWorker, getWriteSetter, getWriteThread, handleFlushComplete, isBroken, isFinalFrameQueued, isFirstDataWritten, isFlushRequiredOnEmptyBuffer, isOpen, isReadyForFlush, isWriteResumed, isWritesShutdown, markBroken, resumeWrites, resumeWritesInternal, safeToSend, send, sendInternal, setOption, shutdownWrites, supportsOption, suspendWrites, transferFrom, transferFrom, wakeupWrites, write, write, write, writeFinal, writeFinal, writeFinal
protected StreamSinkFrameChannel(WebSocketChannel channel, WebSocketFrameType type)
public int getRsv()
public void setRsv(int rsv)
This can only be set before any write or transfer operations where passed to the wrapped StreamSinkChannel
, after that an IllegalStateException
will be thrown.
public boolean isFragmentationSupported()
true
if fragmentation is supported for the WebSocketFrameType
.public boolean areExtensionsSupported()
true
if extensions are supported for the WebSocketFrameType
.public WebSocketFrameType getType()
WebSocketFrameType
for which the StreamSinkFrameChannel
was obtained.public WebSocketChannel getWebSocketChannel()
protected boolean isLastFrame()
isLastFrame
in class AbstractFramedStreamSinkChannel<WebSocketChannel,StreamSourceFrameChannel,StreamSinkFrameChannel>
true
If this is the last frame that will be sent on this connectionpublic boolean isFinalFragment()
Copyright © 2015 JBoss by Red Hat. All rights reserved.