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) |
jakarta.mail.Session |
getSession() |
addObject, borrowObject, clear, close, evict, getFactory, getFactoryType, getMaxIdle, getMinIdle, getNumActive, getNumIdle, getNumWaiters, invalidateObject, invalidateObject, listAllObjects, preparePool, returnObject, setConfig, setMaxIdle, setMinIdle, toStringAppendFields, usegetBlockWhenExhausted, getBorrowedCount, getCreatedCount, getCreationStackTrace, getDestroyedByBorrowValidationCount, getDestroyedByEvictorCount, getDestroyedCount, getDurationBetweenEvictionRuns, getEvictionPolicy, getEvictionPolicyClassName, getEvictorShutdownTimeout, getEvictorShutdownTimeoutDuration, getEvictorShutdownTimeoutMillis, getFairness, getJmxName, getLifo, getLogAbandoned, getMaxBorrowWaitTimeMillis, getMaxTotal, getMaxWaitDuration, getMaxWaitMillis, getMeanActiveTimeMillis, getMeanBorrowWaitTimeMillis, getMeanIdleTimeMillis, getMessageStatistics, getMinEvictableIdleDuration, getMinEvictableIdleTime, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getRemoveAbandonedOnBorrow, getRemoveAbandonedOnMaintenance, getRemoveAbandonedTimeout, getRemoveAbandonedTimeoutDuration, getReturnedCount, getSoftMinEvictableIdleDuration, getSoftMinEvictableIdleTime, getSoftMinEvictableIdleTimeMillis, getSwallowedExceptionListener, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRuns, getTimeBetweenEvictionRunsMillis, isAbandonedConfig, isClosed, markReturningState, setAbandonedConfig, setBlockWhenExhausted, setConfig, setEvictionPolicy, setEvictionPolicyClassName, setEvictionPolicyClassName, setEvictorShutdownTimeout, setEvictorShutdownTimeoutMillis, setLifo, setMaxTotal, setMaxWait, setMaxWaitMillis, setMessagesStatistics, setMinEvictableIdle, setMinEvictableIdleTime, setMinEvictableIdleTimeMillis, setNumTestsPerEvictionRun, setSoftMinEvictableIdle, setSoftMinEvictableIdleTime, setSoftMinEvictableIdleTimeMillis, setSwallowedExceptionListener, setTestOnBorrow, setTestOnCreate, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRuns, setTimeBetweenEvictionRunsMillisclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBlockWhenExhausted, getBorrowedCount, getCreatedCount, getCreationStackTrace, getDestroyedByBorrowValidationCount, getDestroyedByEvictorCount, getDestroyedCount, getFairness, getLifo, getLogAbandoned, getMaxBorrowWaitTimeMillis, getMaxTotal, getMaxWaitMillis, getMeanActiveTimeMillis, getMeanBorrowWaitTimeMillis, getMeanIdleTimeMillis, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getRemoveAbandonedOnBorrow, getRemoveAbandonedOnMaintenance, getRemoveAbandonedTimeout, getReturnedCount, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, isAbandonedConfig, 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 jakarta.mail.Session getSession()
Copyright © 2021. All rights reserved.