1 17 18 19 package org.apache.james.services; 20 21 22 import org.apache.avalon.cornerstone.services.connection.ConnectionManager; 23 import java.net.ServerSocket ; 24 import org.apache.avalon.excalibur.thread.ThreadPool; 25 import org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory; 26 27 31 public interface JamesConnectionManager extends ConnectionManager 32 { 33 36 String ROLE = "org.apache.james.services.JamesConnectionManager"; 37 38 44 int getMaximumNumberOfOpenConnections(); 45 46 58 void connect( String name, 59 ServerSocket socket, 60 ConnectionHandlerFactory handlerFactory, 61 ThreadPool threadPool, 62 int maxOpenConnections ) 63 throws Exception ; 64 65 75 void connect( String name, 76 ServerSocket socket, 77 ConnectionHandlerFactory handlerFactory, 78 int maxOpenConnections ) 79 throws Exception ; 80 81 } 82 | Popular Tags |