1 17 18 package org.apache.avalon.cornerstone.services.connection; 19 20 import java.net.ServerSocket ; 21 import org.apache.excalibur.thread.ThreadPool; 22 23 28 public interface ConnectionManager 29 { 30 String ROLE = ConnectionManager.class.getName(); 31 32 43 void connect( String name, 44 ServerSocket socket, 45 ConnectionHandlerFactory handlerFactory, 46 ThreadPool threadPool ) 47 throws Exception ; 48 49 58 void connect( String name, 59 ServerSocket socket, 60 ConnectionHandlerFactory handlerFactory ) 61 throws Exception ; 62 63 69 void disconnect( String name ) 70 throws Exception ; 71 72 82 void disconnect( String name, boolean tearDown ) 83 throws Exception ; 84 } 85 | Popular Tags |