public class SocketPool extends Pool<Socket,IOException>
| Constructor and Description |
|---|
SocketPool(SocketFactory sf,
SocketAddress sa,
int timeout) |
SocketPool(String host,
int port,
boolean secure,
int timeout) |
SocketPool(String host,
int port,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
destroyObject(Socket socket) |
static SocketFactory |
getSocketFactory(boolean secure) |
protected Socket |
makeObject() |
activateObject, borrowObject, close, passivateObject, reopen, returnObjectpublic SocketPool(String host, int port, int timeout)
public SocketPool(String host, int port, boolean secure, int timeout)
public SocketPool(SocketFactory sf, SocketAddress sa, int timeout)
public static SocketFactory getSocketFactory(boolean secure)
protected Socket makeObject() throws IOException
makeObject in class Pool<Socket,IOException>IOExceptionprotected void destroyObject(Socket socket)
destroyObject in class Pool<Socket,IOException>Copyright © 2016. All rights reserved.