|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.core.journal.impl.JournalTransaction
public class JournalTransaction
A JournalTransaction
Constructor Summary | |
---|---|
JournalTransaction(long id,
JournalImpl journal)
|
Method Summary | |
---|---|
void |
addNegative(JournalFile file,
long id)
|
void |
addPositive(JournalFile file,
long id,
int size)
|
void |
clear()
|
void |
commit(JournalFile file)
The caller of this method needs to guarantee lock.acquire at the journal. |
void |
fillNumberOfRecords(JournalFile currentFile,
MessagingBuffer bb)
|
void |
forget()
Used by load, when the transaction was not loaded correctly |
TransactionCallback |
getCallback(JournalFile file)
|
int |
getCounter(JournalFile file)
|
long |
getId()
|
long[] |
getPositiveArray()
|
void |
incCounter(JournalFile file)
|
void |
merge(JournalTransaction other)
This is used to merge transactions from compacting |
void |
prepare(JournalFile file)
The caller of this method needs to guarantee lock.acquire before calling this method if being used outside of the lock context. |
void |
rollback(JournalFile file)
The caller of this method needs to guarantee lock.acquire before calling this method if being used outside of the lock context. |
void |
setCompacting()
|
void |
syncPreviousFiles(boolean callbacks,
JournalFile currentFile)
99.99 % of the times previous files will be already synced, since they are scheduled to be closed. |
java.lang.String |
toString()
|
void |
waitCallbacks()
|
void |
waitCompletion()
Wait completion at the latest file only |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JournalTransaction(long id, JournalImpl journal)
Method Detail |
---|
public long getId()
public int getCounter(JournalFile file)
public void incCounter(JournalFile file)
public long[] getPositiveArray()
public void setCompacting()
public void merge(JournalTransaction other)
public void clear()
public void fillNumberOfRecords(JournalFile currentFile, MessagingBuffer bb)
currentFile
- bb
- public void syncPreviousFiles(boolean callbacks, JournalFile currentFile) throws java.lang.Exception
java.lang.Exception
public TransactionCallback getCallback(JournalFile file) throws java.lang.Exception
java.lang.Exception
public void addPositive(JournalFile file, long id, int size)
public void addNegative(JournalFile file, long id)
public void commit(JournalFile file)
public void waitCallbacks() throws java.lang.Exception
java.lang.Exception
public void waitCompletion() throws java.lang.Exception
java.lang.Exception
public void rollback(JournalFile file)
public void prepare(JournalFile file)
public void forget()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |