public class SmtpConnectionPool extends org.apache.commons.pool2.impl.GenericObjectPool<ClosableSmtpConnection>
| Constructor and Description |
|---|
SmtpConnectionPool(SmtpConnectionFactory factory) |
SmtpConnectionPool(SmtpConnectionFactory factory,
org.apache.commons.pool2.impl.GenericObjectPoolConfig config) |
SmtpConnectionPool(SmtpConnectionFactory factory,
org.apache.commons.pool2.impl.GenericObjectPoolConfig config,
org.apache.commons.pool2.impl.AbandonedConfig abandonedConfig) |
| Modifier and Type | Method and Description |
|---|---|
ClosableSmtpConnection |
borrowObject() |
ClosableSmtpConnection |
borrowObject(long borrowMaxWaitMillis) |
javax.mail.Session |
getSession() |
addObject, clear, close, evict, getFactory, getFactoryType, getLogAbandoned, getMaxIdle, getMinIdle, getNumActive, getNumIdle, getNumWaiters, getRemoveAbandonedOnBorrow, getRemoveAbandonedOnMaintenance, getRemoveAbandonedTimeout, invalidateObject, isAbandonedConfig, listAllObjects, preparePool, returnObject, setAbandonedConfig, setConfig, setMaxIdle, setMinIdle, usegetBlockWhenExhausted, getBorrowedCount, getCreatedCount, getCreationStackTrace, getDestroyedByBorrowValidationCount, getDestroyedByEvictorCount, getDestroyedCount, getEvictionPolicy, getEvictionPolicyClassName, getFairness, getJmxName, getLifo, getMaxBorrowWaitTimeMillis, getMaxTotal, getMaxWaitMillis, getMeanActiveTimeMillis, getMeanBorrowWaitTimeMillis, getMeanIdleTimeMillis, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getReturnedCount, getSoftMinEvictableIdleTimeMillis, getSwallowedExceptionListener, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, isClosed, setBlockWhenExhausted, setEvictionPolicyClassName, setLifo, setMaxTotal, setMaxWaitMillis, setMinEvictableIdleTimeMillis, setNumTestsPerEvictionRun, setSoftMinEvictableIdleTimeMillis, setSwallowedExceptionListener, setTestOnBorrow, setTestOnCreate, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillisclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlockWhenExhausted, getBorrowedCount, getCreatedCount, getCreationStackTrace, getDestroyedByBorrowValidationCount, getDestroyedByEvictorCount, getDestroyedCount, getFairness, getLifo, getMaxBorrowWaitTimeMillis, getMaxTotal, getMaxWaitMillis, getMeanActiveTimeMillis, getMeanBorrowWaitTimeMillis, getMeanIdleTimeMillis, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getReturnedCount, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, isClosedpublic SmtpConnectionPool(SmtpConnectionFactory factory)
public SmtpConnectionPool(SmtpConnectionFactory factory, org.apache.commons.pool2.impl.GenericObjectPoolConfig config)
public SmtpConnectionPool(SmtpConnectionFactory factory, org.apache.commons.pool2.impl.GenericObjectPoolConfig config, org.apache.commons.pool2.impl.AbandonedConfig abandonedConfig)
public ClosableSmtpConnection borrowObject() throws Exception
borrowObject in interface org.apache.commons.pool2.ObjectPool<ClosableSmtpConnection>borrowObject in class org.apache.commons.pool2.impl.GenericObjectPool<ClosableSmtpConnection>Exceptionpublic ClosableSmtpConnection borrowObject(long borrowMaxWaitMillis) throws Exception
borrowObject in class org.apache.commons.pool2.impl.GenericObjectPool<ClosableSmtpConnection>Exceptionpublic javax.mail.Session getSession()
Copyright © 2016. All rights reserved.