public class SelectDestination extends java.lang.Object implements TransactionParticipant, Configurable, XmlConfigurable
Modifier and Type | Class and Description |
---|---|
static class |
SelectDestination.BinRange |
Constructor and Description |
---|
SelectDestination() |
Modifier and Type | Method and Description |
---|---|
int |
prepare(long id,
java.io.Serializable context)
Called by TransactionManager in preparation for a transaction
|
void |
setConfiguration(Configuration cfg) |
void |
setConfiguration(org.jdom2.Element xml) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abort, commit
public int prepare(long id, java.io.Serializable context)
TransactionParticipant
prepare
in interface TransactionParticipant
id
- the Transaction identifiercontext
- transaction contextpublic void setConfiguration(Configuration cfg)
setConfiguration
in interface Configurable
cfg
- Configuration objectpublic void setConfiguration(org.jdom2.Element xml) throws ConfigurationException
setConfiguration
in interface XmlConfigurable
xml
- Configuration elementConfigurationException
- SelectDestination expects an XML configuration in the following format: