src/java.base/share/classes/sun/nio/ch/SelChImpl.java
changeset 49001 ce06058197a4
parent 47216 71c04702a3d5
child 49142 4affaea00c05
equal deleted inserted replaced
49000:a406a9c451a0 49001:ce06058197a4
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    27 
    27 
    28 import java.nio.channels.Channel;
    28 import java.nio.channels.Channel;
    29 import java.io.FileDescriptor;
    29 import java.io.FileDescriptor;
    30 import java.io.IOException;
    30 import java.io.IOException;
    31 
    31 
    32 
       
    33 /**
    32 /**
    34  * An interface that allows translation (and more!).
    33  * An interface that allows translation (and more!).
    35  *
    34  *
    36  * @since 1.4
    35  * @since 1.4
    37  */
    36  */
    48      *
    47      *
    49      * @return  true iff the new value of sk.readyOps() set by this method
    48      * @return  true iff the new value of sk.readyOps() set by this method
    50      *          contains at least one bit that the previous value did not
    49      *          contains at least one bit that the previous value did not
    51      *          contain
    50      *          contain
    52      */
    51      */
    53     public boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk);
    52     boolean translateAndUpdateReadyOps(int ops, SelectionKeyImpl sk);
    54 
    53 
    55     /**
    54     /**
    56      * Sets the specified ops if present in interestOps. The specified
    55      * Sets the specified ops if present in interestOps. The specified
    57      * ops are turned on, and all other ops are turned off.
    56      * ops are turned on, and all other ops are turned off.
    58      *
    57      *
    59      * @return  true iff the new value of sk.readyOps() set by this method
    58      * @return  true iff the new value of sk.readyOps() set by this method
    60      *          contains at least one bit that the previous value did not
    59      *          contains at least one bit that the previous value did not
    61      *          contain
    60      *          contain
    62      */
    61      */
    63     public boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk);
    62     boolean translateAndSetReadyOps(int ops, SelectionKeyImpl sk);
    64 
    63 
    65     void translateAndSetInterestOps(int ops, SelectionKeyImpl sk);
    64     void translateAndSetInterestOps(int ops, SelectionKeyImpl sk);
    66 
    65 
    67     int validOps();
    66     int validOps();
    68 
    67