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

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

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

import com.fireflysource.common.io.AsyncCloseable;

import java.net.InetSocketAddress;

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

    Object getAttachment();

    void setAttachment(Object object);

    int getId();

    long getOpenTime();

    long getCloseTime();

    long getDuration();

    long getLastReadTime();

    long getLastWrittenTime();

    long getLastActiveTime();

    long getReadBytes();

    long getWrittenBytes();

    long getIdleTime();

    long getMaxIdleTime();

    boolean isClosed();

    InetSocketAddress getLocalAddress();

    InetSocketAddress getRemoteAddress();

    boolean isInvalid();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy