1 7 8 package com.sun.corba.se.pept.transport; 9 10 import java.nio.channels.SelectableChannel ; 11 import java.nio.channels.SelectionKey ; 12 13 import com.sun.corba.se.spi.orbutil.threadpool.Work; 14 15 20 public interface EventHandler 21 { 22 public void setUseSelectThreadToWait(boolean x); 23 public boolean shouldUseSelectThreadToWait(); 24 25 public SelectableChannel getChannel(); 26 27 public int getInterestOps(); 28 29 public void setSelectionKey(SelectionKey selectionKey); 30 public SelectionKey getSelectionKey(); 31 32 public void handleEvent(); 33 34 public void setUseWorkerThreadForEvent(boolean x); 38 public boolean shouldUseWorkerThreadForEvent(); 39 40 public void setWork(Work work); 41 public Work getWork(); 42 43 public Acceptor getAcceptor(); 45 public Connection getConnection(); 46 47 } 48 49 51 52 53 54 55 56 57 58 | Popular Tags |