4617266: (se spec) SelectionKey.OP_READ/OP_WRITE documentation errors
Reviewed-by: lancea, alanb, darcy
This commit is contained in:
parent
f87ebd9e5d
commit
e2f4319171
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -73,7 +73,7 @@ import java.lang.invoke.VarHandle;
|
|||||||
*
|
*
|
||||||
* <p> This class defines all known operation-set bits, but precisely which
|
* <p> This class defines all known operation-set bits, but precisely which
|
||||||
* bits are supported by a given channel depends upon the type of the channel.
|
* bits are supported by a given channel depends upon the type of the channel.
|
||||||
* Each subclass of {@link SelectableChannel} defines an {@link
|
* Each subclass of {@link SelectableChannel} defines a {@link
|
||||||
* SelectableChannel#validOps() validOps()} method which returns a set
|
* SelectableChannel#validOps() validOps()} method which returns a set
|
||||||
* identifying just those operations that are supported by the channel. An
|
* identifying just those operations that are supported by the channel. An
|
||||||
* attempt to set or test an operation-set bit that is not supported by a key's
|
* attempt to set or test an operation-set bit that is not supported by a key's
|
||||||
@ -290,7 +290,7 @@ public abstract class SelectionKey {
|
|||||||
* {@code OP_READ} at the start of a <a
|
* {@code OP_READ} at the start of a <a
|
||||||
* href="Selector.html#selop">selection operation</a>. If the selector
|
* href="Selector.html#selop">selection operation</a>. If the selector
|
||||||
* detects that the corresponding channel is ready for reading, has reached
|
* detects that the corresponding channel is ready for reading, has reached
|
||||||
* end-of-stream, has been remotely shut down for further reading, or has
|
* end-of-stream, has been remotely shut down for further writing, or has
|
||||||
* an error pending, then it will add {@code OP_READ} to the key's
|
* an error pending, then it will add {@code OP_READ} to the key's
|
||||||
* ready-operation set. </p>
|
* ready-operation set. </p>
|
||||||
*/
|
*/
|
||||||
@ -303,7 +303,7 @@ public abstract class SelectionKey {
|
|||||||
* {@code OP_WRITE} at the start of a <a
|
* {@code OP_WRITE} at the start of a <a
|
||||||
* href="Selector.html#selop">selection operation</a>. If the selector
|
* href="Selector.html#selop">selection operation</a>. If the selector
|
||||||
* detects that the corresponding channel is ready for writing, has been
|
* detects that the corresponding channel is ready for writing, has been
|
||||||
* remotely shut down for further writing, or has an error pending, then it
|
* remotely shut down for further reading, or has an error pending, then it
|
||||||
* will add {@code OP_WRITE} to the key's ready set. </p>
|
* will add {@code OP_WRITE} to the key's ready set. </p>
|
||||||
*/
|
*/
|
||||||
public static final int OP_WRITE = 1 << 2;
|
public static final int OP_WRITE = 1 << 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user