|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.shared.client.AbstractJmsMessage
org.objectweb.joram.shared.client.AbstractJmsRequest
org.objectweb.joram.shared.client.XACnxRollback
public final class XACnxRollback
An XACnxRollback
instance is used by an
XAConnection
for rolling back the operations performed
during a transaction.
Field Summary | |
---|---|
private byte[] |
bq
Transaction branch qualifier. |
private int |
fi
Transaction identifier format. |
private byte[] |
gti
Global transaction identifier. |
private java.util.Hashtable |
qDenyings
Table holding the identifiers of the messages to deny on queues. |
private static long |
serialVersionUID
define serialVersionUID for interoperability |
private java.util.Hashtable |
subDenyings
Table holding the identifiers of the messages to deny on subs. |
Fields inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest |
---|
requestId, target |
Constructor Summary | |
---|---|
XACnxRollback()
Constructs an XACnxRollback instance. |
|
XACnxRollback(byte[] bq,
int fi,
byte[] gti)
Constructs an XACnxRollback instance. |
Method Summary | |
---|---|
void |
add(java.lang.String target,
java.util.Vector ids,
boolean queueMode)
Adds a vector of denied messages' identifiers. |
byte[] |
getBQ()
Returns the transaction branch qualifier. |
protected int |
getClassId()
|
int |
getFI()
Returns the transaction identifier format. |
byte[] |
getGTI()
Returns the global transaction identifier. |
java.util.Vector |
getQueueIds(java.lang.String queue)
Returns the vector of msg identifiers for a given queue. |
java.util.Enumeration |
getQueues()
Returns the queues enumeration. |
java.util.Vector |
getSubIds(java.lang.String sub)
Returns the vector of msg identifiers for a given subscription. |
java.util.Enumeration |
getSubs()
Returns the subscriptions enumeration. |
void |
readFrom(java.io.InputStream is)
The object implements the readFrom method to restore its contents from the input stream. |
void |
setBQ(byte[] bq)
|
void |
setFI(int fi)
|
void |
setGTI(byte[] gti)
|
void |
setQDenyings(java.util.Hashtable qDenyings)
Sets the queue denyings table. |
void |
setSubDenyings(java.util.Hashtable subDenyings)
Sets the sub denyings table. |
void |
writeTo(java.io.OutputStream os)
The object implements the writeTo method to write its contents to the output stream. |
Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest |
---|
getRequestId, getTarget, setRequestId, setTarget, toString, toString |
Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsMessage |
---|
read, readExternal, soapCode, soapDecode, write, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private byte[] bq
private int fi
private byte[] gti
private java.util.Hashtable qDenyings
private java.util.Hashtable subDenyings
Constructor Detail |
---|
public XACnxRollback(byte[] bq, int fi, byte[] gti)
XACnxRollback
instance.
bq
- Transaction branch qualifier.fi
- Transaction identifier format.gti
- Global transaction identifier.public XACnxRollback()
XACnxRollback
instance.
Method Detail |
---|
public void setBQ(byte[] bq)
public byte[] getBQ()
public void setFI(int fi)
public int getFI()
public void setGTI(byte[] gti)
public byte[] getGTI()
public void add(java.lang.String target, java.util.Vector ids, boolean queueMode)
target
- Name of the queue or of the subscription where denying the
messages.ids
- Vector of message identifiers.queueMode
- true
if the messages have to be denied on
a queue.public java.util.Enumeration getQueues()
public java.util.Vector getQueueIds(java.lang.String queue)
public java.util.Enumeration getSubs()
public void setQDenyings(java.util.Hashtable qDenyings)
public void setSubDenyings(java.util.Hashtable subDenyings)
public java.util.Vector getSubIds(java.lang.String sub)
protected int getClassId()
getClassId
in class AbstractJmsMessage
public void writeTo(java.io.OutputStream os) throws java.io.IOException
writeTo
in interface Streamable
writeTo
in class AbstractJmsRequest
os
- the stream to write the object to
java.io.IOException
public void readFrom(java.io.InputStream is) throws java.io.IOException
readFrom
in interface Streamable
readFrom
in class AbstractJmsRequest
is
- the stream to read data from in order to restore the object
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |