|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.tranlog.BaseTransactionLogEntry
This is the base entry that is streamed into the transaction log file. All other transaction log entry classes must extend this class.
Each entry has the associated XID and the created time stamp, along with the identity of the resource that created the entry
Method Summary | |
long |
getCreated()
Return the time that this entry was created |
long |
getExpiryTime()
Retrieve the expiry time of this transaction |
ExternalXid |
getExternalXid()
Get the transaction identifier |
java.lang.String |
getResourceId()
Get the resource identifier |
void |
readExternal(java.io.ObjectInput stream)
|
void |
setCreated()
Set the created time of this entry to now |
void |
setCreated(long time)
Set the time in ms that this record was created |
void |
setExpiryTime(long time)
Set the expiry time for this transaction, which is an absolute time in milliseconds. |
void |
setExternalXid(ExternalXid txid)
Set the transaction identifier |
void |
setResourceId(java.lang.String rid)
Set the resource identity for the entry |
boolean |
transactionExpired()
Check whether the trnasaction has expired |
void |
writeExternal(java.io.ObjectOutput stream)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void setExternalXid(ExternalXid txid)
txid
- - the transaction identifierpublic ExternalXid getExternalXid()
public void setResourceId(java.lang.String rid)
rid
- - the resource identitypublic java.lang.String getResourceId()
public void setCreated(long time)
time
- - time in mspublic void setCreated()
public long getCreated()
public void setExpiryTime(long time)
long
- - absolute expiry timepublic long getExpiryTime()
public boolean transactionExpired()
public void writeExternal(java.io.ObjectOutput stream) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
public void readExternal(java.io.ObjectInput stream) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |