Class FragmentingFlusher
java.lang.Object
org.eclipse.jetty.websocket.core.util.TransformingFlusher
org.eclipse.jetty.websocket.core.util.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
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
forwardFrame
(Frame frame, Callback callback, boolean batch) protected boolean
Called when a frame is ready to be transformed.protected boolean
Called to transform the frame given inTransformingFlusher.onFrame(Frame, Callback, boolean)
.Methods inherited from class org.eclipse.jetty.websocket.core.util.TransformingFlusher
closeFlusher, failFlusher, sendFrame
-
Constructor Details
-
FragmentingFlusher
-
-
Method Details
-
forwardFrame
-
onFrame
Description copied from class:TransformingFlusher
Called when a frame is ready to be transformed.- Specified by:
onFrame
in 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:TransformingFlusher
Called 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:
transform
in classTransformingFlusher
- Parameters:
callback
- used to signal to start processing again.- Returns:
- true to indicate that you have finished transforming this frame.
-