Re: So why are things being executed twice on every transaction?

Klaus Wuestefeld <[email protected]>
Newsgroups gmane.comp.java.prevayler
Message-ID <CAMAooZHhtpPDL_R20RRHTxsopDH6bO56agMO77H1Sdz2YO=cjw@mail.gmail.com>
guideFor(Capsule capsule)


On Tue, Nov 8, 2011 at 11:49 AM, Naveen Chawla <[email protected]> wrote:
> 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
>

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.