Re: So why are things being executed twice on every transaction?
Naveen Chawla <[email protected]>
| Newsgroups | gmane.comp.java.prevayler |
|---|---|
| Message-ID | <CAGs7EcXZrPUb-qMYZ8p9WaVgfAy9-4j9RBeit3i9vyY0KOiX8g@mail.gmail.com> |
Ok. What should the method name of CentralPubisher#approve be? Or
should it stay the same?
It is
private TransactionGuide approve(Capsule capsule) {
synchronized (_nextTurnMonitor) {
TransactionTimestamp timestamp = new
TransactionTimestamp(capsule, _nextTransaction,
_pausableClock.realTime());
Turn turn = _nextTurn;
_nextTurn = _nextTurn.next();
_nextTransaction++;
return new TransactionGuide(timestamp, turn);
}
}
It's called via "publish":
private void publishWithoutWorryingAboutNewSubscriptions(Capsule capsule) {
TransactionGuide guide = approve(capsule);
_journal.append(guide);
notifySubscribers(guide);
}
On 8 November 2011 16:16, Klaus Wuestefeld <[email protected]> wrote:
>> Klaus, would you like my fork to lose transaction filtering?
>
> Yes.
>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
_______________________________________________
"Databases in Memoriam" -- http://www.prevayler.org