org.sapia.ubik.rmi.server.transport
Interface Connections

All Known Implementing Classes:
HttpClientConnectionPool, JdkClientConnectionPool, NioTcpClientConnectionPool, SocketClientConnectionPool

public interface Connections

Specifies the behavior of pools of client-side Connection.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Method Summary
 RmiConnection acquire()
          Acquires a connection from this pool.
 void clear()
          Closes all connections kept internally and removes them.
 java.lang.String getTransportType()
          Returns the "transport type" of the connections held by this instance.
 void release(Connection conn)
          Releases the given connection to this pool.
 

Method Detail

acquire

RmiConnection acquire()
                      throws java.rmi.RemoteException
Acquires a connection from this pool.

Returns:
a Connection.
Throws:
java.rmi.RemoteException - if a problem occurs acquiring a connection.

release

void release(Connection conn)
Releases the given connection to this pool.

Parameters:
a - Connection.

clear

void clear()
Closes all connections kept internally and removes them.


getTransportType

java.lang.String getTransportType()
Returns the "transport type" of the connections held by this instance.

Returns:
a transport type.


Copyright © 2010 Sapia OSS. All Rights Reserved.