|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.store.raw.xact.TransactionTable.UpdateTransactionCounter
private static class TransactionTable.UpdateTransactionCounter
Visitor class that counts update transactions. Note that update
transactions may be added or removed concurrently unless the caller
synchronizes on "this" (the TransactionTable
instance) while
applying the visitor.
Field Summary | |
---|---|
private int |
count
|
private boolean |
stopOnFirst
|
Constructor Summary | |
---|---|
TransactionTable.UpdateTransactionCounter(boolean stopOnFirst)
Create an instance of this visitor. |
Method Summary | |
---|---|
(package private) int |
getCount()
Get the number of update transactions seen by this visitor |
boolean |
visit(TransactionTableEntry entry)
Check if the entry represents an update transaction, and update the counter accordingly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final boolean stopOnFirst
private int count
Constructor Detail |
---|
TransactionTable.UpdateTransactionCounter(boolean stopOnFirst)
stopOnFirst
- if true
, stop the scan as soon as we
have found one update transaction (useful if all we care about is
whether or not the transaction table contains an update transaction);
otherwise, scan the entire transaction tableMethod Detail |
---|
public boolean visit(TransactionTableEntry entry)
visit
in interface TransactionTable.EntryVisitor
entry
- the TransactionTableEntry
being visited
true
if the scan of the transaction table should
continue, or false
if the visitor has completed its work
and no more entries need to be visitedint getCount()
|
Built on Thu 2012-03-29 21:53:33+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |