public final class InboundBridge extends Object implements XAResource, SerializableXAResourceDeserializer, Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
XARESOURCE_FORMAT_ID
Unique (well, hopefully) formatId so we can distinguish our own Xids.
|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY| Constructor and Description |
|---|
InboundBridge()
Empty constructor for serialisation.
|
InboundBridge(Xid xid,
String enlistmentUrl)
Constructor creates new transaction and enlists himself to it.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDeserialze(String className)
Can this
SerializableXAResourceDeserializer handle the specified
classname. |
void |
commit(Xid xid,
boolean b)
Following methods are not really used.
|
XAResource |
deserialze(ObjectInputStream ois)
Deserialize the XAResource.
|
void |
end(Xid xid,
int i) |
boolean |
equals(Object o) |
void |
forget(Xid xid) |
String |
getEnlistmentUrl() |
int |
getTransactionTimeout() |
Xid |
getXid() |
int |
hashCode() |
boolean |
isSameRM(XAResource resource) |
int |
prepare(Xid xid) |
Xid[] |
recover(int i) |
void |
rollback(Xid xid) |
void |
setEnlistmentUrl(String enlistmentUrl) |
boolean |
setTransactionTimeout(int i) |
void |
setXid(Xid xid) |
void |
start() |
void |
start(Xid xid,
int i) |
void |
stop() |
String |
toString() |
public static final int XARESOURCE_FORMAT_ID
public void start()
public void stop()
public Xid getXid()
public void setXid(Xid xid)
public String getEnlistmentUrl()
public void setEnlistmentUrl(String enlistmentUrl)
public boolean equals(Object o)
equals in class ObjectObject.equals(Object)public boolean canDeserialze(String className)
SerializableXAResourceDeserializerSerializableXAResourceDeserializer handle the specified
classname.canDeserialze in interface SerializableXAResourceDeserializerclassName - The name of the class to deserialize.public XAResource deserialze(ObjectInputStream ois) throws IOException, ClassNotFoundException
SerializableXAResourceDeserializerdeserialze in interface SerializableXAResourceDeserializerois - The input stream to read from.XAResourceIOException - If the ObjectInputStream.readObject() fails.ClassNotFoundException - If the ObjectInputStream.readObject() fails.public void commit(Xid xid, boolean b) throws XAException
commit in interface XAResourceXAExceptionpublic void end(Xid xid, int i) throws XAException
end in interface XAResourceXAExceptionpublic void forget(Xid xid) throws XAException
forget in interface XAResourceXAExceptionpublic int getTransactionTimeout()
throws XAException
getTransactionTimeout in interface XAResourceXAExceptionpublic boolean isSameRM(XAResource resource) throws XAException
isSameRM in interface XAResourceXAExceptionpublic int prepare(Xid xid) throws XAException
prepare in interface XAResourceXAExceptionpublic Xid[] recover(int i) throws XAException
recover in interface XAResourceXAExceptionpublic void rollback(Xid xid) throws XAException
rollback in interface XAResourceXAExceptionpublic boolean setTransactionTimeout(int i)
throws XAException
setTransactionTimeout in interface XAResourceXAExceptionpublic void start(Xid xid, int i) throws XAException
start in interface XAResourceXAExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.