Reorganize compiler for more flexibility.
[jagi.git] / src / jagi / event / Watcher.java
CommitLineData
aac2f975
FT
1package jagi.event;
2
3import java.io.*;
4import java.nio.channels.*;
5
6public 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}