![JAR search and dependency download from the Maven repository](/logo.png)
com.firefly.codec.websocket.model.OutgoingFrames Maven / Gradle / Ivy
package com.firefly.codec.websocket.model;
import com.firefly.codec.websocket.frame.Frame;
import com.firefly.utils.concurrent.Callback;
/**
* Interface for dealing with frames outgoing to (eventually) the network layer.
*/
public interface OutgoingFrames {
/**
* 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 WriteCallback appropriately.
*
* @param frame the frame to eventually write to the network layer.
* @param callback the callback to notify when the frame is written.
*/
void outgoingFrame(Frame frame, Callback callback);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy