public class MultiPoolConnectionInterceptor extends Object implements ConnectionInterceptor, PoolingAttributes
| Constructor and Description |
|---|
MultiPoolConnectionInterceptor(ConnectionInterceptor next,
PoolingSupport singlePoolFactory,
boolean useSubject,
boolean useCRI) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
int |
getBlockingTimeoutMilliseconds() |
void |
getConnection(ConnectionInfo connectionInfo) |
int |
getConnectionCount() |
int |
getIdleConnectionCount() |
int |
getIdleTimeoutMinutes() |
int |
getPartitionCount() |
int |
getPartitionMaxSize() |
int |
getPartitionMinSize() |
void |
info(StringBuilder s) |
void |
returnConnection(ConnectionInfo connectionInfo,
ConnectionReturnAction connectionReturnAction) |
void |
setBlockingTimeoutMilliseconds(int timeoutMilliseconds) |
void |
setIdleTimeoutMinutes(int idleTimeoutMinutes) |
void |
setPartitionMaxSize(int maxSize) |
void |
setPartitionMinSize(int minSize) |
public MultiPoolConnectionInterceptor(ConnectionInterceptor next, PoolingSupport singlePoolFactory, boolean useSubject, boolean useCRI)
public void getConnection(ConnectionInfo connectionInfo) throws javax.resource.ResourceException
getConnection in interface ConnectionInterceptorjavax.resource.ResourceExceptionpublic void returnConnection(ConnectionInfo connectionInfo, ConnectionReturnAction connectionReturnAction)
returnConnection in interface ConnectionInterceptorpublic void destroy()
destroy in interface ConnectionInterceptorpublic int getPartitionCount()
getPartitionCount in interface PoolingAttributespublic int getPartitionMaxSize()
getPartitionMaxSize in interface PoolingAttributespublic void setPartitionMaxSize(int maxSize)
throws InterruptedException
setPartitionMaxSize in interface PoolingAttributesInterruptedExceptionpublic int getPartitionMinSize()
getPartitionMinSize in interface PoolingAttributespublic void setPartitionMinSize(int minSize)
setPartitionMinSize in interface PoolingAttributespublic int getIdleConnectionCount()
getIdleConnectionCount in interface PoolingAttributespublic int getConnectionCount()
getConnectionCount in interface PoolingAttributespublic int getBlockingTimeoutMilliseconds()
getBlockingTimeoutMilliseconds in interface PoolingAttributespublic void setBlockingTimeoutMilliseconds(int timeoutMilliseconds)
setBlockingTimeoutMilliseconds in interface PoolingAttributespublic int getIdleTimeoutMinutes()
getIdleTimeoutMinutes in interface PoolingAttributespublic void setIdleTimeoutMinutes(int idleTimeoutMinutes)
setIdleTimeoutMinutes in interface PoolingAttributespublic void info(StringBuilder s)
info in interface ConnectionInterceptorCopyright © 2023. All rights reserved.