com.microfocus.cobol.connector.spi.CobolConnectionManager
public class CobolConnectionManager
extends Object
implements ConnectionManager, Serializable
See Also:
Serialized Form
Method Summary | |
---|---|
Object | allocateConnection(ManagedConnectionFactory mcf
ConnectionRequestInfo info
Allocate a connection. |
int |
getBlockingTimeout
Get the blocking timeout. |
int | getConnectionCount
Get the connection count. |
long | getIdleTimeout
Get the idle timeout. |
int | getMaxSize
Get the maximum pool parameter size. |
int | getMinSize
Get the minimum pool parameter size. |
void | setBlockingTimeout
Set the blocking timeout. |
void | setIdleTimeout
Set the idle timeout. |
void | setMaxSize
Set the maximum pool parameter size. |
void | setMinSize
Set the minimum pool parameter size. |
public CobolConnectionManager(com.microfocus.cobol.connector.spi.ManagedConnectionPool.PoolParams poolParams, ManagedConnectionFactory mcf)
Create a CobolConnectionManager.
poolParams | Pool parameters |
mcf | Managed Connection Factory instance |
public int setMinSize()
Set the minimum pool parameter size.
minSize | Minimum size. |
public int getMinSize()
Get the minimum pool parameter size.
public void setMaxSize(int maxSize)
Set the maximum pool parameter size.
maxSize | Maximum size. |
public int getMaxSize()
Get the maximum pool parameter size.
public void setBlockingTimeout(int blockingTimeout)
Set the blocking timeout.
blockingTimeout | The blocking timeout value. |
public int getBlockingTimeout()
Get the blocking timeout.
public void setIdleTimeout(long idleTimeout)
Set the idle timeout.
idleTimeout | The idle timeout value. |
public long getIdleTimeout()
Get the idle timeout.
public Object allocateConnection(ManagedConnectionFactory mcf ConnectionRequestInfo info throws ResourceException)
Allocate a connection.
mcf | Managed Connection Factory instance. |
info | Connection Request Info instance . |
public int getConnectionCount()
Get the connection count.