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

hprose.net.TimeoutType Maven / Gradle / Ivy

/**********************************************************\
|                                                          |
|                          hprose                          |
|                                                          |
| Official WebSite: http://www.hprose.com/                 |
|                   http://www.hprose.org/                 |
|                                                          |
\**********************************************************/
/**********************************************************\
 *                                                        *
 * TimeoutType.java                                       *
 *                                                        *
 * hprose TimeoutType interface for Java.                 *
 *                                                        *
 * LastModified: Apr 15, 2016                             *
 * Author: Ma Bingyao                   *
 *                                                        *
\**********************************************************/
package hprose.net;

public enum TimeoutType {
    CONNECT_TIMEOUT, READ_TIMEOUT, WRITE_TIMEOUT, IDLE_TIMEOUT;
    @Override
    public String toString() {
        switch(this) {
            case CONNECT_TIMEOUT: return "connect timeout";
            case READ_TIMEOUT: return "read timeout";
            case WRITE_TIMEOUT: return "write timeout";
            case IDLE_TIMEOUT: return "idle timeout";
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy