MCPcopy Create free account
hub / github.com/ReadyTalk/avian / SelectableChannel

Class SelectableChannel

classpath/java/nio/channels/SelectableChannel.java:16–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14import java.nio.ByteBuffer;
15
16public abstract class SelectableChannel implements Channel {
17 private SelectionKey key;
18 private boolean open = true;
19
20 abstract int socketFD();
21
22 abstract void handleReadyOps(int ops);
23
24 public abstract SelectableChannel configureBlocking(boolean v)
25 throws IOException;
26
27 public SelectionKey register(Selector selector, int interestOps,
28 Object attachment)
29 {
30 key = new SelectionKey(this, selector, interestOps, attachment);
31 selector.add(key);
32 return key;
33 }
34
35 public boolean isOpen() {
36 return open;
37 }
38
39 public void close() throws IOException {
40 open = false;
41 key = null;
42 }
43}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected