Class FragmentingFlusher
java.lang.Object
org.eclipse.jetty.websocket.core.internal.TransformingFlusher
org.eclipse.jetty.websocket.core.internal.FragmentingFlusher
Used to split large data frames into multiple frames below the maxFrameSize.
Control frames and dataFrames smaller than the maxFrameSize will be forwarded
directly to
forwardFrame(Frame, Callback, boolean).-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jetty.websocket.core.internal.TransformingFlusher
closeFlusher, failFlusher, sendFrame
-
Constructor Details
-
FragmentingFlusher
-
-
Method Details
-
onFrame
Description copied from class:TransformingFlusherCalled when a frame is ready to be transformed.- Specified by:
onFramein classTransformingFlusher- Parameters:
frame- the frame to transform.callback- used to signal to start processing again.batch- whether this frame can be batched.- Returns:
- true to indicate that you have finished transforming this frame.
-
transform
Description copied from class:TransformingFlusherCalled to transform the frame given inTransformingFlusher.onFrame(Frame, Callback, boolean). This method is called on each callback success until it returns true. If the call toTransformingFlusher.onFrame(Frame, Callback, boolean)returns true then this method will not be called.- Specified by:
transformin classTransformingFlusher- Parameters:
callback- used to signal to start processing again.- Returns:
- true to indicate that you have finished transforming this frame.
-