Top Description Methods
org.eclipse.jetty.websocket.core

public Interface OutgoingFrames

Known Direct Subinterfaces
org.eclipse.jetty.websocket.core.CoreSession, org.eclipse.jetty.websocket.core.Extension
Known Direct Implementers
org.eclipse.jetty.websocket.core.WebSocketCoreSession.OutgoingAdaptor, org.eclipse.jetty.websocket.core.ExtensionStack
Imports
org.eclipse.jetty.util.Callback

Interface for dealing with frames outgoing to (eventually) the network layer.

Method Summary

Modifier and TypeMethod and Description
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
)

A frame, and optional callback, intended for the network layer.

Method Detail

sendFrameback to summary
public void sendFrame(Frame frame, Callback callback, boolean batch)

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.

Parameters
frame:Frame

the frame to eventually write to the network layer.

callback:Callback

the callback to notify when the frame is written.

batch:boolean

the batch mode requested by the sender.