1 22 package org.xsocket.stream; 23 24 import java.io.IOException ; 25 26 31 public interface IConnectionPool { 32 33 34 42 public void destroyConnection(IConnection connection) throws IOException ; 43 44 45 50 public int getMaxActive(); 51 52 53 58 public void setMaxActive(int maxActive); 59 60 61 67 public long getMaxWaitMillis(); 68 69 70 76 public void setMaxWaitMillis(long maxWaitMillis); 77 78 79 83 public int getMaxIdle(); 84 85 86 90 public void setMaxIdle(int maxIdle); 91 92 93 97 public int getNumActive(); 98 99 100 105 public int getNumIdle(); 106 107 108 112 public long getIdleTimeoutMillis(); 113 114 115 120 public void setIdleTimeoutMillis(long idleTimeoutMillis); 121 122 127 public long getLifeTimeoutMillis(); 128 129 133 public void setLifeTimeoutMillis(long lifeTimeoutMillis); 134 135 136 140 public void close(); 141 } 142 | Popular Tags |