37 |
|
|
38 |
package java.nio.channels; |
package java.nio.channels; |
39 |
|
|
40 |
import java.nio.channels.spi.*; |
import java.nio.channels.spi.AbstractInterruptibleChannel; |
41 |
|
import java.nio.channels.spi.SelectorProvider; |
42 |
|
|
43 |
public abstract class SelectableChannel extends AbstractInterruptibleChannel |
public abstract class SelectableChannel |
44 |
|
extends AbstractInterruptibleChannel |
45 |
{ |
{ |
46 |
protected SelectableChannel() |
protected SelectableChannel() |
47 |
{ |
{ |
48 |
} |
} |
49 |
public abstract Object blockingLock(); |
|
50 |
public abstract SelectableChannel configureBlocking(boolean block); |
public abstract Object blockingLock(); |
51 |
public abstract boolean isBlocking(); |
|
52 |
public abstract boolean isRegistered(); |
public abstract SelectableChannel configureBlocking(boolean block); |
53 |
public abstract SelectionKey keyFor(Selector sel); |
|
54 |
public abstract SelectorProvider provider(); |
public abstract boolean isBlocking(); |
55 |
public SelectionKey register(Selector sel, int ops) throws java.nio.channels.ClosedChannelException |
|
56 |
{ |
public abstract boolean isRegistered(); |
57 |
return register(sel, ops, null); |
|
58 |
} |
public abstract SelectionKey keyFor(Selector sel); |
59 |
public abstract SelectionKey register(Selector sel, int ops, Object att) throws java.nio.channels.ClosedChannelException; |
|
60 |
public abstract int validOps(); |
public abstract SelectorProvider provider(); |
61 |
|
|
62 |
|
public final SelectionKey register(Selector sel, int ops) |
63 |
|
throws ClosedChannelException |
64 |
|
{ |
65 |
|
return register(sel, ops, null); |
66 |
|
} |
67 |
|
|
68 |
|
public abstract SelectionKey register(Selector sel, int ops, Object att) |
69 |
|
throws ClosedChannelException; |
70 |
|
|
71 |
|
public abstract int validOps(); |
72 |
} |
} |