src/share/classes/java/nio/channels/SelectionKey.java

Print this page

        

@@ -248,10 +248,18 @@
      * href="Selector.html#selop">selection operation</a>.  If the selector
      * detects that the corresponding socket channel is ready to complete its
      * connection sequence, or has an error pending, then it will add
      * <tt>OP_CONNECT</tt> to the key's ready set and add the key to its
      * selected-key&nbsp;set.  </p>
+     *
+     * <p>
+     * Note an application should not use Selector's select() method to check
+     * <tt>OP_CONNECT</tt> again, once a channel is already connected. Please
+     * see {@link  java.nio.channels.Selector#select() Selector.select()} for
+     * more detail.
+     * </p>
+     *
      */
     public static final int OP_CONNECT = 1 << 3;
 
     /**
      * Operation-set bit for socket-accept operations.  </p>