Tests whether this key's channel has either finished, or failed to
finish, its socket-connection operation.
Tests whether this key's channel has either finished, or failed to
finish, its socket-connection operation.
An invocation of this method of the form k.isConnectable()
behaves in exactly the same way as the expression
k.readyOps() & OP_CONNECT != 0
If this key's channel does not support socket-connect operations
then this method always returns false.
Returns:
true if, and only if,
readyOps() & OP_CONNECT
is nonzero
Throws:
-
CancelledKeyException - If this key has been cancelled