| java.lang.Object com.sun.portal.rproxy.connectionhandler.SocketCache
SocketCache | final public class SocketCache (Code) | | The SocketCache class maintains a Hashtable of CachedSockets to use. Requests
made of the SocketCache for a socket will return an available socket that
matches the host and port signature. If an available socket is not found in
the cache, a new one is created.
author: Kevin Hartig See Also: CachedSocket |
SocketCache | public SocketCache()(Code) | | |
getSocket | public synchronized CachedSocket getSocket(String host, int port, String socketType)(Code) | | Get an IDLE socket from the cache that matches the signature and type.
The socket is returned in the ACTIVE state.
|
putSocket | public synchronized void putSocket(CachedSocket cachedSocket)(Code) | | Put a newly created socket in the cache.
|
removeSocket | public synchronized void removeSocket(CachedSocket hashKey)(Code) | | Remove a CachedSocket from the cache
Parameters: hashKey - The hash table key designating the object to remove from thetable. |
|
|