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 voidforwardFrame(OutgoingEntry entry) protected voidonCompleteFailure(Throwable cause) Called when the flusher has failed andWebSocketFlusher.onFrame(OutgoingEntry, boolean)will never be called again.protected booleanonFrame(OutgoingEntry entry, boolean first) Called when a frame is ready to be transformed.Methods inherited from class WebSocketFlusher
closeFlusher, failFlusher, sendFrameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface OutgoingFrames
sendFrame 
- 
Constructor Details
- 
FragmentingFlusher
 
 - 
 - 
Method Details
- 
forwardFrame
 - 
onFrame
Description copied from class:WebSocketFlusherCalled when a frame is ready to be transformed.- Specified by:
 onFramein 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:WebSocketFlusherCalled when the flusher has failed andWebSocketFlusher.onFrame(OutgoingEntry, boolean)will never be called again.- Overrides:
 onCompleteFailurein classWebSocketFlusher
 
 -