|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.server.transport.socket.SocketClientConnectionPool
public class SocketClientConnectionPool
Implements a pool of client-side SocketConnection instances.
It multiplexes the pooled connections among multiple callers - thereby
sparing the creation of multiple connections, and releiving the server
of intensive threading - typically, one connection corresponds to one server
thread.
| Constructor Summary | |
|---|---|
SocketClientConnectionPool(java.lang.String host,
int port,
long resetInterval,
java.rmi.server.RMIClientSocketFactory socketFactory)
Constructor for RMIClientConnectionPool. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketClientConnectionPool(java.lang.String host,
int port,
long resetInterval,
java.rmi.server.RMIClientSocketFactory socketFactory)
host - the host of the server to connect to.port - the port of the server.| Method Detail |
|---|
public RmiConnection acquire()
throws java.rmi.RemoteException
Connections
acquire in interface ConnectionsConnection.
java.rmi.RemoteException - if a problem occurs acquiring a connection.Connections.acquire()public void release(Connection conn)
Connections
release in interface ConnectionsConnections.release(Connection)public void clear()
Connections
clear in interface ConnectionsConnections.clear()public java.lang.String getTransportType()
Connections
getTransportType in interface ConnectionsConnections.getTransportType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||