public class TerminatingFifoXtnsInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TerminatingFifoXtnsInfo.FifoXtnEntryInfo |
static class |
TerminatingFifoXtnsInfo.FifoXtnWriteLockEntryInfo |
Modifier and Type | Field and Description |
---|---|
ConcurrentHashMap<TerminatingFifoXtnsInfo.FifoXtnEntryInfo,TerminatingFifoXtnsInfo.FifoXtnEntryInfo> |
_terminatingXtnsEntries |
static long |
UNKNOWN_FIFO_XTN |
Constructor and Description |
---|
TerminatingFifoXtnsInfo() |
Modifier and Type | Method and Description |
---|---|
TerminatingFifoXtnsInfo.FifoXtnEntryInfo |
getFifoEntryXtnInfo(IEntryHolder eh) |
long |
getLatestTTransactionTerminationNum() |
ConcurrentHashMap<TerminatingFifoXtnsInfo.FifoXtnEntryInfo,TerminatingFifoXtnsInfo.FifoXtnEntryInfo> |
getTerminatingXtnsEntries() |
static boolean |
isSeqTransactionGT(long xtn1,
long xtn2)
method returns true if xtn1 is sequentially GT xtn2
|
void |
removeFifoXtnInfoForEntry(IEntryHolder eh)
remove fifo xtn info for entry MUST be called when entry is locked
|
void |
setFifoCreationXtnInfoForEntry(IEntryHolder eh,
long xtnNumber)
create fifo xtn info for entry MUST be called when entry is locked
|
void |
setLatestTransactionTerminationNum(long xtnTerminationNum) |
void |
updateFifoXtnInfoForEntry(IEntryHolder eh,
long xtnNumber,
boolean writeLock,
boolean entryWritingXtn)
update fifo xtn info for entry MUST be called when entry is locked update write lock if
writeLock is true, else update read lock, also update the xtn which committed the entry
|
public static final long UNKNOWN_FIFO_XTN
public ConcurrentHashMap<TerminatingFifoXtnsInfo.FifoXtnEntryInfo,TerminatingFifoXtnsInfo.FifoXtnEntryInfo> _terminatingXtnsEntries
public long getLatestTTransactionTerminationNum()
public void setLatestTransactionTerminationNum(long xtnTerminationNum)
public void setFifoCreationXtnInfoForEntry(IEntryHolder eh, long xtnNumber)
public void updateFifoXtnInfoForEntry(IEntryHolder eh, long xtnNumber, boolean writeLock, boolean entryWritingXtn)
public void removeFifoXtnInfoForEntry(IEntryHolder eh)
public TerminatingFifoXtnsInfo.FifoXtnEntryInfo getFifoEntryXtnInfo(IEntryHolder eh)
public ConcurrentHashMap<TerminatingFifoXtnsInfo.FifoXtnEntryInfo,TerminatingFifoXtnsInfo.FifoXtnEntryInfo> getTerminatingXtnsEntries()
public static boolean isSeqTransactionGT(long xtn1, long xtn2)
Copyright © GigaSpaces.