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

com.firefly.net.tcp.codec.flex.stream.FlexConnection Maven / Gradle / Ivy

There is a newer version: 5.0.0-dev6
Show newest version
package com.firefly.net.tcp.codec.flex.stream;

import com.firefly.net.Connection;
import com.firefly.net.tcp.codec.flex.model.Request;

/**
 * @author Pengtao Qiu
 */
public interface FlexConnection extends Connection {

    Session getSession();

    void newRequest(Request request, Listener listener);

    void onRequest(Listener listener);

    FlexConfiguration getConfiguration();

    interface Listener {

        void newRequest(Context context);

        void newResponse(Context context);

        void content(Context context, byte[] receivedData);

        void contentComplete(Context context);

        void messageComplete(Context context);

        default void exception(Context context, Throwable throwable) {

        }

        default void close(Context context) {

        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy