public class Switch extends java.lang.Object implements Configurable, GroupSelector
Constructor and Description |
---|
Switch() |
Modifier and Type | Method and Description |
---|---|
int |
prepare(long id,
java.io.Serializable o)
Called by TransactionManager in preparation for a transaction
|
java.lang.String |
select(long id,
java.io.Serializable ser) |
void |
setConfiguration(Configuration cfg) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abort, commit
public java.lang.String select(long id, java.io.Serializable ser)
select
in interface GroupSelector
id
- transaction idser
- transaction contextpublic int prepare(long id, java.io.Serializable o)
TransactionParticipant
prepare
in interface TransactionParticipant
id
- the Transaction identifiero
- transaction contextpublic void setConfiguration(Configuration cfg)
setConfiguration
in interface Configurable
cfg
- Configuration object