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 ConnectionInterceptor
javax.resource.ResourceException
public void returnConnection(ConnectionInfo connectionInfo, ConnectionReturnAction connectionReturnAction)
returnConnection
in interface ConnectionInterceptor
public void destroy()
destroy
in interface ConnectionInterceptor
public int getPartitionCount()
getPartitionCount
in interface PoolingAttributes
public int getPartitionMaxSize()
getPartitionMaxSize
in interface PoolingAttributes
public void setPartitionMaxSize(int maxSize) throws InterruptedException
setPartitionMaxSize
in interface PoolingAttributes
InterruptedException
public int getPartitionMinSize()
getPartitionMinSize
in interface PoolingAttributes
public void setPartitionMinSize(int minSize)
setPartitionMinSize
in interface PoolingAttributes
public int getIdleConnectionCount()
getIdleConnectionCount
in interface PoolingAttributes
public int getConnectionCount()
getConnectionCount
in interface PoolingAttributes
public int getBlockingTimeoutMilliseconds()
getBlockingTimeoutMilliseconds
in interface PoolingAttributes
public void setBlockingTimeoutMilliseconds(int timeoutMilliseconds)
setBlockingTimeoutMilliseconds
in interface PoolingAttributes
public int getIdleTimeoutMinutes()
getIdleTimeoutMinutes
in interface PoolingAttributes
public void setIdleTimeoutMinutes(int idleTimeoutMinutes)
setIdleTimeoutMinutes
in interface PoolingAttributes
public void info(StringBuilder s)
info
in interface ConnectionInterceptor
Copyright © 2017. All rights reserved.