public class SocketPool extends Pool<Socket> implements SocketPoolMXBean
| Modifier and Type | Field and Description |
|---|---|
protected int |
connectTimeout |
protected String |
host |
protected int |
port |
protected int |
readTimeout |
protected SslContext |
sslContext |
protected int |
tos |
closed, createdCount, initialCount, maxCount, timeout, timeouts, waitingThreadsmodCount| Constructor and Description |
|---|
SocketPool(ConnectionString conn) |
| Modifier and Type | Method and Description |
|---|---|
Socket |
createObject() |
void |
destroyObject(Socket socket) |
int |
getBusyCount() |
int |
getConnectTimeout() |
int |
getIdleCount() |
int |
getMaxCount() |
int |
getReadTimeout() |
int |
getTimeout() |
int |
getTimeouts() |
int |
getWaitingThreads() |
String |
name() |
void |
setConnectTimeout(int connectTimeout) |
void |
setMaxCount(int maxCount) |
protected void |
setProperties(ConnectionString conn) |
void |
setReadTimeout(int readTimeout) |
void |
setTimeout(int timeout) |
borrowObject, close, initialize, invalidateAll, invalidateObject, isClosed, returnObjectadd, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitinvalidateAll, isClosedcontainsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subListparallelStream, removeIf, streamprotected String host
protected int port
protected int readTimeout
protected int connectTimeout
protected int tos
protected SslContext sslContext
public SocketPool(ConnectionString conn)
protected void setProperties(ConnectionString conn)
public int getTimeouts()
getTimeouts in interface SocketPoolMXBeanpublic int getWaitingThreads()
getWaitingThreads in interface SocketPoolMXBeanpublic int getBusyCount()
getBusyCount in interface SocketPoolMXBeanpublic int getIdleCount()
getIdleCount in interface SocketPoolMXBeanpublic int getMaxCount()
getMaxCount in interface SocketPoolMXBeanpublic void setMaxCount(int maxCount)
setMaxCount in interface SocketPoolMXBeanpublic int getTimeout()
getTimeout in interface SocketPoolMXBeanpublic void setTimeout(int timeout)
setTimeout in interface SocketPoolMXBeanpublic int getReadTimeout()
getReadTimeout in interface SocketPoolMXBeanpublic void setReadTimeout(int readTimeout)
setReadTimeout in interface SocketPoolMXBeanpublic int getConnectTimeout()
getConnectTimeout in interface SocketPoolMXBeanpublic void setConnectTimeout(int connectTimeout)
setConnectTimeout in interface SocketPoolMXBeanpublic Socket createObject() throws PoolException
createObject in class Pool<Socket>PoolExceptionpublic void destroyObject(Socket socket)
destroyObject in class Pool<Socket>Copyright © 2018. All rights reserved.