src/java.base/share/classes/sun/nio/ch/IOStatus.java
branchunixdomainchannels
changeset 58848 c3df0f8b6d93
parent 58801 119ac9128c1b
equal deleted inserted replaced
58847:692de65ab293 58848:c3df0f8b6d93
    83 
    83 
    84     /**
    84     /**
    85      * Returns true if the error code is UNAVAILABLE or INTERRUPTED, the
    85      * Returns true if the error code is UNAVAILABLE or INTERRUPTED, the
    86      * error codes to indicate that an I/O operation can be retried.
    86      * error codes to indicate that an I/O operation can be retried.
    87      */
    87      */
    88     public static boolean okayToRetry(long n) {
    88     static boolean okayToRetry(long n) {
    89         return (n == IOStatus.UNAVAILABLE) || (n == IOStatus.INTERRUPTED);
    89         return (n == IOStatus.UNAVAILABLE) || (n == IOStatus.INTERRUPTED);
    90     }
    90     }
    91 
    91 
    92 }
    92 }