1 22 23 package org.xsocket; 24 25 import java.io.Closeable ; 26 import java.io.IOException ; 27 import java.util.Set ; 28 29 30 31 32 39 public interface IDispatcher<T extends IHandle> extends Runnable , Closeable { 40 41 48 public IEventHandler<T> getEventHandler(); 49 50 51 52 61 public void register(T handle, int ops) throws IOException ; 62 63 64 72 public void deregister(final T handle) throws IOException ; 73 74 75 80 public Set <T> getRegistered(); 81 82 83 92 public void updateInterestSet(T handle, int ops) throws IOException ; 93 94 95 100 public long getNumberOfHandledRegistrations(); 101 102 103 108 public long getNumberOfHandledReads(); 109 110 111 116 public long getNumberOfHandledWrites(); 117 } 118 | Popular Tags |