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

com.firefly.net.Connection Maven / Gradle / Ivy

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

import java.io.Closeable;
import java.net.InetSocketAddress;

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

    Object getAttachment();

    void setAttachment(Object object);

    int getSessionId();

    long getOpenTime();

    long getCloseTime();

    long getDuration();

    long getLastReadTime();

    long getLastWrittenTime();

    long getLastActiveTime();

    long getReadBytes();

    long getWrittenBytes();

    long getIdleTimeout();

    long getMaxIdleTimeout();

    boolean isOpen();

    boolean isClosed();

    InetSocketAddress getLocalAddress();

    InetSocketAddress getRemoteAddress();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy