public class ConfigurableRecoveryPlugin extends java.lang.Object implements RecoveryPlugin
Constructor and Description |
---|
ConfigurableRecoveryPlugin()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close(java.lang.Object c)
Perform a close operation on the passed connection object instance - like
a CCI Connection instance.
|
boolean |
isValid(java.lang.Object c)
Check if the passed connection object instance is still valid, and hence
the underlying physical connection
|
void |
setCloseMethod(java.lang.String v)
Set close method name
|
void |
setEnableClose(boolean v)
Enable close method call
|
void |
setEnableIsValid(boolean v)
Enable isValid method call
|
void |
setIsValidOverride(boolean v)
Override value for isValid method call if not enabled
|
void |
setIsValidValue(int v)
Set isValid method parameter
|
public void setEnableIsValid(boolean v)
v
- The valuepublic void setIsValidValue(int v)
v
- The valuepublic void setIsValidOverride(boolean v)
v
- The valuepublic void setEnableClose(boolean v)
v
- The valuepublic void setCloseMethod(java.lang.String v)
v
- The valuepublic boolean isValid(java.lang.Object c) throws javax.resource.ResourceException
isValid
in interface RecoveryPlugin
c
- The connection instanceTrue
if the connection is still valid, otherwise false
javax.resource.ResourceException
- Thrown in case of an errorpublic void close(java.lang.Object c) throws javax.resource.ResourceException
close
in interface RecoveryPlugin
c
- The connection instancejavax.resource.ResourceException
- Thrown in case of an errorjavax.resource.cci.Connection
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)