public class WebSocketFramePriority extends Object implements FramePriority<WebSocketChannel,StreamSourceFrameChannel,StreamSinkFrameChannel>
Constructor and Description |
---|
WebSocketFramePriority() |
Modifier and Type | Method and Description |
---|---|
void | frameAdded(StreamSinkFrameChannel addedFrame, List<StreamSinkFrameChannel> pendingFrames, Deque<StreamSinkFrameChannel> holdFrames) Invoked when a new frame is successfully added to the pending frames queue. |
boolean | insertFrame(StreamSinkFrameChannel newFrame, List<StreamSinkFrameChannel> pendingFrames) Inserts the new frame at the correct location in the pending frame list. |
public boolean insertFrame(StreamSinkFrameChannel newFrame, List<StreamSinkFrameChannel> pendingFrames)
FramePriority
insertFrame
in interface FramePriority<WebSocketChannel,StreamSourceFrameChannel,StreamSinkFrameChannel>
newFrame
- The new frame to insert into the pending frame listpendingFrames
- The pending frame listpublic void frameAdded(StreamSinkFrameChannel addedFrame, List<StreamSinkFrameChannel> pendingFrames, Deque<StreamSinkFrameChannel> holdFrames)
FramePriority
frameAdded
in interface FramePriority<WebSocketChannel,StreamSourceFrameChannel,StreamSinkFrameChannel>
addedFrame
- The newly added framependingFrames
- The pending frame queueholdFrames
- The held frame queueCopyright © 2015 JBoss by Red Hat. All rights reserved.