All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fireflysource.net.websocket.common.model.OutgoingFrames Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package com.fireflysource.net.websocket.common.model;

import com.fireflysource.common.sys.Result;
import com.fireflysource.net.websocket.common.frame.Frame;

import java.util.function.Consumer;

/**
 * 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 result the callback to notify when the frame is written. */ void outgoingFrame(Frame frame, Consumer> result); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy