KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > rmi > server > transport > Connections


1 package org.sapia.ubik.rmi.server.transport;
2
3 import java.rmi.RemoteException JavaDoc;
4
5 import org.sapia.ubik.net.Connection;
6
7
8 /**
9  * Specifies the behavior of pools of client-side <code>Connection</code>.
10  *
11  * @author Yanick Duchesne
12  * <dl>
13  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
14  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
15  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
16  * </dl>
17  */

18 public interface Connections {
19   /**
20    * Acquires a connection from this pool.
21    *
22    * @return a <code>Connection</code>.
23    * @throws RemoteException if a problem occurs acquiring a connection.
24    */

25   public RmiConnection acquire() throws RemoteException JavaDoc;
26
27   /**
28    * Releases the given connection to this pool.
29    *
30    * @param a <code>Connection</code>.
31    */

32   public void release(Connection conn);
33
34   /**
35    * Closes all connections kept internally and removes them.
36    */

37   public void clear();
38
39   /**
40    * Returns the "transport type" of the connections held by this instance.
41    *
42    * @return a transport type.
43    */

44   public String JavaDoc getTransportType();
45 }
46
Popular Tags