public class PageTransactionInfoImpl extends Object implements PageTransactionInfo
Constructor and Description |
---|
PageTransactionInfoImpl() |
PageTransactionInfoImpl(long transactionID) |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
void |
decode(HornetQBuffer buffer) |
boolean |
deliverAfterCommit(PageSubscription cursor,
PagePosition cursorPos)
This method will hold the position to be delivered later in case this transaction is pending.
|
void |
encode(HornetQBuffer buffer) |
int |
getEncodeSize() |
int |
getNumberOfMessages() |
long |
getRecordID() |
long |
getTransactionID() |
void |
increment(boolean persistent) |
void |
increment(int durableSize,
int nonDurableSize) |
protected org.hornetq.core.paging.impl.PageTransactionInfoImpl.UpdatePageTXOperation |
internalUpdatePageManager(StorageManager storageManager,
PagingManager pagingManager,
Transaction tx,
int increment) |
boolean |
isCommit() |
boolean |
isRollback() |
void |
onUpdate(int update,
StorageManager storageManager,
PagingManager pagingManager) |
void |
reloadUpdate(StorageManager storageManager,
PagingManager pagingManager,
Transaction tx,
int increment) |
void |
rollback() |
void |
setCommitted(boolean committed) |
void |
setRecordID(long recordID) |
void |
store(StorageManager storageManager,
PagingManager pagingManager,
Transaction tx) |
void |
storeUpdate(StorageManager storageManager,
PagingManager pagingManager) |
void |
storeUpdate(StorageManager storageManager,
PagingManager pagingManager,
Transaction tx) |
String |
toString() |
public PageTransactionInfoImpl(long transactionID)
public PageTransactionInfoImpl()
public long getRecordID()
getRecordID
in interface PageTransactionInfo
public void setRecordID(long recordID)
setRecordID
in interface PageTransactionInfo
public long getTransactionID()
getTransactionID
in interface PageTransactionInfo
public void onUpdate(int update, StorageManager storageManager, PagingManager pagingManager)
onUpdate
in interface PageTransactionInfo
public void increment(boolean persistent)
increment
in interface PageTransactionInfo
public void increment(int durableSize, int nonDurableSize)
increment
in interface PageTransactionInfo
public int getNumberOfMessages()
getNumberOfMessages
in interface PageTransactionInfo
public void decode(HornetQBuffer buffer)
decode
in interface EncodingSupport
public void encode(HornetQBuffer buffer)
encode
in interface EncodingSupport
public int getEncodeSize()
getEncodeSize
in interface EncodingSupport
public void commit()
commit
in interface PageTransactionInfo
public void store(StorageManager storageManager, PagingManager pagingManager, Transaction tx) throws Exception
store
in interface PageTransactionInfo
Exception
public void storeUpdate(StorageManager storageManager, PagingManager pagingManager, Transaction tx) throws Exception
storeUpdate
in interface PageTransactionInfo
Exception
public void reloadUpdate(StorageManager storageManager, PagingManager pagingManager, Transaction tx, int increment) throws Exception
reloadUpdate
in interface PageTransactionInfo
Exception
protected org.hornetq.core.paging.impl.PageTransactionInfoImpl.UpdatePageTXOperation internalUpdatePageManager(StorageManager storageManager, PagingManager pagingManager, Transaction tx, int increment)
storageManager
- pagingManager
- tx
- public void storeUpdate(StorageManager storageManager, PagingManager pagingManager) throws Exception
storeUpdate
in interface PageTransactionInfo
Exception
public boolean isCommit()
isCommit
in interface PageTransactionInfo
public void setCommitted(boolean committed)
setCommitted
in interface PageTransactionInfo
public boolean isRollback()
isRollback
in interface PageTransactionInfo
public void rollback()
rollback
in interface PageTransactionInfo
public boolean deliverAfterCommit(PageSubscription cursor, PagePosition cursorPos)
PageTransactionInfo
deliverAfterCommit
in interface PageTransactionInfo
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.