1 Reply Latest reply on Jan 27, 2012 6:33 AM by Sudheer Krishna

    4 events at put?

    Thomas Fromm Newbie

      At cache.put(...) 4 events are created e.g.

       

      {code}

      EventImpl{pre=true, key=CacheKey{name='foobar', lastModified=1327662339099, attributes=[]}, transaction=DldGlobalTransaction{coinToss=6282419818130005544, isMarkedForRollback=false, lockIntention=null, affectedKeys=[], locksAtOrigin=[]} GlobalTransaction:<null>:1:local, originLocal=true, transactionSuccessful=false, type=CACHE_ENTRY_CREATED, value=null}

      EventImpl{pre=false, key=CacheKey{name='foobar', lastModified=1327662339099, attributes=[]}, transaction=DldGlobalTransaction{coinToss=6282419818130005544, isMarkedForRollback=false, lockIntention=null, affectedKeys=[], locksAtOrigin=[]} GlobalTransaction:<null>:1:local, originLocal=true, transactionSuccessful=false, type=CACHE_ENTRY_CREATED, value=null}

      EventImpl{pre=true, key=CacheKey{name='foobar', lastModified=1327662339099, attributes=[]}, transaction=DldGlobalTransaction{coinToss=6282419818130005544, isMarkedForRollback=false, lockIntention=null, affectedKeys=[], locksAtOrigin=[]} GlobalTransaction:<null>:1:local, originLocal=true, transactionSuccessful=false, type=CACHE_ENTRY_MODIFIED, value=null}

      EventImpl{pre=false, key=CacheKey{name='foobar', lastModified=1327662339099, attributes=[]}, transaction=DldGlobalTransaction{coinToss=6282419818130005544, isMarkedForRollback=false, lockIntention=null, affectedKeys=[], locksAtOrigin=[]} GlobalTransaction:<null>:1:local, originLocal=true, transactionSuccessful=false, type=CACHE_ENTRY_MODIFIED, value=xyz}

      {code}

       

       

      Why not just only 2 events are thrown? (pre-create and create)