public abstract class StreamSourceFrameChannel extends AbstractFramedStreamSourceChannel<WebSocketChannel,StreamSourceFrameChannel,StreamSinkFrameChannel>
| Modifier and Type | Field and Description |
|---|---|
protected WebSocketFrameType |
type |
| Modifier | Constructor and Description |
|---|---|
protected |
StreamSourceFrameChannel(WebSocketChannel wsChannel,
WebSocketFrameType type,
long payloadSize,
int rsv,
boolean finalFragment,
org.xnio.Pooled<ByteBuffer> pooled,
long frameLength) |
protected |
StreamSourceFrameChannel(WebSocketChannel wsChannel,
WebSocketFrameType type,
long payloadSize,
org.xnio.Pooled<ByteBuffer> pooled,
long frameLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
discard()
Discard the frame, which means all data that would be part of the frame will be discarded.
|
void |
finalFrame() |
protected WebSocketChannel |
getFramedChannel() |
int |
getRsv()
Return the rsv which is used for extensions.
|
WebSocketFrameType |
getType()
Return the
WebSocketFrameType or null if its not known at the calling time. |
WebSocketChannel |
getWebSocketChannel() |
boolean |
isFinalFragment()
Flag to indicate if this frame is the final fragment in a message.
|
awaitReadable, awaitReadable, close, complete, getCloseSetter, getIoThread, getOption, getReadFrameCount, getReadSetter, getReadThread, getWorker, handleHeaderData, isComplete, isOpen, isReadResumed, lastFrame, read, read, read, resumeReads, setOption, shutdownReads, supportsOption, suspendReads, transferTo, transferTo, wakeupReadsprotected final WebSocketFrameType type
protected StreamSourceFrameChannel(WebSocketChannel wsChannel, WebSocketFrameType type, long payloadSize, org.xnio.Pooled<ByteBuffer> pooled, long frameLength)
protected StreamSourceFrameChannel(WebSocketChannel wsChannel, WebSocketFrameType type, long payloadSize, int rsv, boolean finalFragment, org.xnio.Pooled<ByteBuffer> pooled, long frameLength)
public WebSocketFrameType getType()
WebSocketFrameType or null if its not known at the calling time.public boolean isFinalFragment()
public int getRsv()
public void discard()
throws IOException
AbstractFramedStreamSourceChannel.close()IOExceptionprotected WebSocketChannel getFramedChannel()
public WebSocketChannel getWebSocketChannel()
public void finalFrame()
Copyright © 2014 JBoss by Red Hat. All rights reserved.