Class FragmentingFlusher
java.lang.Object
org.eclipse.jetty.websocket.core.util.WebSocketFlusher
org.eclipse.jetty.websocket.core.util.FragmentingFlusher
- All Implemented Interfaces:
OutgoingFrames
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(OutgoingEntry)
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
forwardFrame
(OutgoingEntry entry) protected void
onCompleteFailure
(Throwable cause) Called when the flusher has failed andWebSocketFlusher.onFrame(OutgoingEntry, boolean)
will never be called again.protected boolean
onFrame
(OutgoingEntry entry, boolean first) Called when a frame is ready to be transformed.Methods inherited from class org.eclipse.jetty.websocket.core.util.WebSocketFlusher
closeFlusher, failFlusher, sendFrame
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.websocket.core.OutgoingFrames
sendFrame
-
Constructor Details
-
FragmentingFlusher
-
-
Method Details
-
forwardFrame
-
onFrame
Description copied from class:WebSocketFlusher
Called when a frame is ready to be transformed.- Specified by:
onFrame
in classWebSocketFlusher
- Parameters:
entry
- the entry containing the frame to be transformed.first
- true if this is the first time this entry is being processed.- Returns:
- true to indicate that you have finished transforming this entry.
-
onCompleteFailure
Description copied from class:WebSocketFlusher
Called when the flusher has failed andWebSocketFlusher.onFrame(OutgoingEntry, boolean)
will never be called again.- Overrides:
onCompleteFailure
in classWebSocketFlusher
-