| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private final Configuration | |
| private final DemandingFlusher | |
| private static final Logger | |
| private final FragmentingFlusher |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | getName()
Overrides org. Implements org. The |
| public void | init(ExtensionConfig config, WebSocketComponents components)
Overrides org. Implements org.
|
| public void | onFrame(Frame
the frame to process. frame, Callback the read completion. callback)Overrides org. Implements org. Process the incoming frame. |
| public void | sendFrame(Frame
the frame to eventually write to the network layer. frame, Callback the callback to notify when the frame is written. callback, boolean the batch mode requested by the sender. batch)Overrides org. Implements org. A frame, and optional callback, intended for the network layer. |
| public void | setNextDemand(DemandChain nextDemand)
Overrides default org.
|
| configuration | back to summary |
|---|---|
| private final Configuration configuration | |
| incomingFlusher | back to summary |
|---|---|
| private final DemandingFlusher incomingFlusher | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| outgoingFlusher | back to summary |
|---|---|
| private final FragmentingFlusher outgoingFlusher | |
| FragmentExtension | back to summary |
|---|---|
| public FragmentExtension() | |
| demand | back to summary |
|---|---|
| public void demand() Implements org.
| |
| getName | back to summary |
|---|---|
| public String getName() Overrides org. Implements org. Doc from org. The
Also known as the | |
| init | back to summary |
|---|---|
| public void init(ExtensionConfig config, WebSocketComponents components) Overrides org. Implements org.
| |
| onFrame | back to summary |
|---|---|
| public void onFrame(Frame frame, Callback callback) Overrides org. Implements org. Doc from org. Process the incoming frame. Note if you need to hang onto any information from the frame, be sure to copy it, as the information contained in the Frame will be released and/or reused by the implementation. Failure of the callback will propagate the failure back to the | |
| sendFrame | back to summary |
|---|---|
| public void sendFrame(Frame frame, Callback callback, boolean batch) Overrides org. Implements org. Doc from org. A frame, and optional callback, intended for the network layer. Note the frame can undergo many transformations in the various layers and extensions present in the implementation. If you are implementing a mutation, you are obliged to handle the incoming Callback appropriately. | |
| setNextDemand | back to summary |
|---|---|
| public void setNextDemand(DemandChain nextDemand) Overrides default org.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | handle(Frame
the original frame. frame, Callback to succeed to release the frame payload. callback, boolean if this is the first time this method has been called for this frame. first)Implements abstract org. Called when there is demand for a single frame to be produced. |
| FragmentingDemandingFlusher | back to summary |
|---|---|
| public FragmentingDemandingFlusher() | |
| handle | back to summary |
|---|---|
| protected boolean handle(Frame frame, Callback callback, boolean first) Implements abstract org. Doc from org. Called when there is demand for a single frame to be produced. During this method a single call can be made
to Note that the callback supplied here is specially wrapped so that you can call it multiple times and it will not be completed more than once. This simplifies the handling of failure cases.
| |