Package org.jboss.jca.adapters.jdbc.xa
Class URLXASelector
java.lang.Object
org.jboss.jca.adapters.jdbc.xa.URLXASelector
- All Implemented Interfaces:
URLXASelectorStrategy
Default URL XA selector implementation
- Author:
- Jesper Pedersen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactive()Get the active XAData entryvoidFail a XAData entry - e.g.getData()Get the data for an error presentationbooleanhasMore()Does the plugin has more valid XAData entries ?voidInit the plugin with the XAData entriesvoidreset()Reset the plugintoString()
-
Constructor Details
-
URLXASelector
public URLXASelector()Constructor
-
-
Method Details
-
init
Init the plugin with the XAData entries- Specified by:
initin interfaceURLXASelectorStrategy- Parameters:
data- The value
-
hasMore
public boolean hasMore()Does the plugin has more valid XAData entries ?- Specified by:
hasMorein interfaceURLXASelectorStrategy- Returns:
- True, if more are available, otherwise false
-
active
Get the active XAData entry- Specified by:
activein interfaceURLXASelectorStrategy- Returns:
- The value
-
fail
Fail a XAData entry - e.g. mark it as bad- Specified by:
failin interfaceURLXASelectorStrategy- Parameters:
xd- The value
-
reset
public void reset()Reset the plugin- Specified by:
resetin interfaceURLXASelectorStrategy
-
getData
Get the data for an error presentation- Specified by:
getDatain interfaceURLXASelectorStrategy- Returns:
- The value
-
toString
-