1 28 29 package com.caucho.server.port; 30 31 import com.caucho.log.Log; 32 import com.caucho.util.L10N; 33 34 import java.util.logging.Logger ; 35 36 39 abstract public class AbstractSelectManager { 40 private static final L10N L = new L10N(AbstractSelectManager.class); 41 private static final Logger log = Log.open(AbstractSelectManager.class); 42 43 46 public void setSelectTimeout(long period) 47 { 48 } 49 50 53 public void setSelectMax(int max) 54 { 55 } 56 57 60 abstract public void start(); 61 62 69 abstract public boolean keepalive(TcpConnection conn); 70 71 74 public int getSelectCount() 75 { 76 return 0; 77 } 78 79 82 public int getFreeKeepalive() 83 { 84 return Integer.MAX_VALUE / 2; 85 } 86 87 90 public boolean stop() 91 { 92 return true; 93 } 94 95 98 public void close() 99 { 100 stop(); 101 } 102 } 103 | Popular Tags |