public class SniffySelectionKey extends SelectionKey implements ObjectWrapper<SelectionKey>
OP_ACCEPT, OP_CONNECT, OP_READ, OP_WRITE| Modifier | Constructor and Description |
|---|---|
protected |
SniffySelectionKey(SelectionKey delegate,
SniffySelector sniffySelector,
SelectableChannel sniffyChannel) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
SelectableChannel |
channel() |
SelectionKey |
getDelegate() |
int |
interestOps() |
SelectionKey |
interestOps(int ops) |
int |
interestOpsAnd(int ops) |
int |
interestOpsOr(int ops) |
boolean |
isValid() |
int |
readyOps() |
Selector |
selector() |
attach, attachment, isAcceptable, isConnectable, isReadable, isWritableprotected SniffySelectionKey(SelectionKey delegate, SniffySelector sniffySelector, SelectableChannel sniffyChannel)
public SelectionKey getDelegate()
getDelegate in interface ObjectWrapper<SelectionKey>public SelectableChannel channel()
channel in class SelectionKeypublic Selector selector()
selector in class SelectionKeypublic boolean isValid()
isValid in class SelectionKeypublic void cancel()
cancel in class SelectionKeypublic int interestOps()
interestOps in class SelectionKeypublic SelectionKey interestOps(int ops)
interestOps in class SelectionKeypublic int readyOps()
readyOps in class SelectionKeypublic int interestOpsOr(int ops)
public int interestOpsAnd(int ops)
Copyright © 2021. All rights reserved.