in netty ( http://www.Netty.io ) framework , class pathway of org.jboss.netty.channel.Channel have some fields for InterestOps (OP_NONE,OP_READ,OP_READ_WRITE,OP_WRITE)
these details of fields there are in javadoc
link : http://netty.io/3.9/api/org/jboss/netty/channel/Channel.html
OP_READ - If set, a message sent by a remote peer will be read immediately. If unset, the message from the remote peer will not be read until the OP_READ flag is set again (i.e. read suspension).
OP_WRITE - If set, a write request will not be sent to a remote peer until the OP_WRITE flag is cleared and the write request will be pending in a queue. If unset, the write request will be flushed out as soon as possible from the queue.
OP_READ_WRITE - This is a combination of OP_READ and OP_WRITE, which means only write requests are suspended.
OP_NONE - This is a combination of (NOT OP_READ) and (NOT OP_WRITE), which means only read operation is suspended.
first explains are OK and logical but this fields explain again in Field Summary section :
OP_NONE The interestOps value which tells that only read operation has been suspended.
OP_READ The interestOps value which tells that neither read nor write operation has been suspended.
OP_READ_WRITE The interestOps value which tells that only write operation has been suspended.
OP_WRITE The interestOps value which tells that both read and write operation has been suspended.
i think all second explain is not match with all first explain , is this a type wrong or it's logical ??