The default ConnectionManager implementation for the non-managed scenario. This provides a hook for a resource adapter to pass a connection request to an application server.
All Implemented Interfaces
Serializable, javax.resource.spi.ConnectionManager
Class Specifications
public class MFECIConnectionManager
extends
Object
implements javax.resource.spi.ConnectionManager,
Serializable
See Also:
Serialized Form
Constructor Summary
-
MFECIConnectionManager(ManagedConnectionPool.PoolParams poolParams, javax.resource.spi.ManagedConnectionFactory mcf )
- Create a CobolConnectionManager.
Constructor Detail
- MFECIConnectionManager
-
public MFECIConnectionManager(ManagedConnectionPool.PoolParams poolParams,
javax.resource.spi.ManagedConnectionFactory mcf)
Create a CobolConnectionManager.
- Parameters:
-
poolParams
|
Pool parameters
|
mcf
|
Managed Connection Factory instance
|
Method Detail
- setMinSize
-
public int setMinSize()
Set the minimum pool parameter size.
- Parameters:
-
- getMinSize
-
public int getMinSize()
Get the minimum pool parameter size.
- Returns:
- The minimum pool parameter size.
- setMaxSize
-
public void setMaxSize(int maxSize)
Set the maximum pool parameter size.
- Parameters:
-
- getMaxSize
-
public int getMaxSize()
Get the maximum pool parameter size.
- Returns:
- The maximum pool parameter size.
- setBlockingTimeout
-
public void setBlockingTimeout(int blockingTimeout)
Set the blocking timeout.
- Parameters:
-
blockingTimeout
|
The blocking timeout value.
|
- getBlockingTimeout
-
public int getBlockingTimeout()
Get the blocking timeout.
- Returns:
- The blocking timeout.
- setIdleTimeout
-
public void setIdleTimeout(long idleTimeout)
Set the idle timeout.
- Parameters:
-
idleTimeout
|
The idle timeout value.
|
- getIdleTimeout
-
public long getIdleTimeout()
Get the idle timeout.
- Returns:
- The idle timeout.
- allocateConnection
-
public Object allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf,
javax.resource.spi.ConnectionRequestInfo info)
throws javax.resource.ResourceException)
Allocate a connection.
- Specified by:
- allocateConnection in interface javax.resource.spi.ConnectionManager
- Parameters:
-
mcf
|
Managed Connection Factory instance.
|
info
|
Connection Request Info instance .
|
- Returns:
- MFECIManagedConnection instance.
- Throws:
- javax.resource.ResourceException
- getConnectionCount
-
public int getConnectionCount()
Get the connection count.
- Returns:
- The connection count.