Commit | Line | Data |
---|---|---|
aac2f975 FT |
1 | package jagi.event; |
2 | ||
3 | import java.io.*; | |
4 | import java.nio.channels.*; | |
5 | ||
6 | public interface Watcher { | |
7 | public SelectableChannel channel(); | |
8 | public int events(); | |
9 | public void handle(int events) throws Exception; | |
10 | public default void close() {} | |
11 | public default double timeout() {return(Double.POSITIVE_INFINITY);} | |
31f44c3f | 12 | public default void added(Driver d) {} |
aac2f975 | 13 | } |