org.xwiki.security.authorization.cache
Class ConflictingInsertionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.xwiki.security.authorization.cache.ConflictingInsertionException
All Implemented Interfaces:
Serializable

public class ConflictingInsertionException
extends Exception

This exception is thrown if two or more parallel threads have attempted to load the cache with the same entry at the same time as a right was updated, so the resulting entries are different. When this happens, there must be a pending event waiting to be delivered, which will remove the offending entry from the cache. Thus, the appropriate action is to restart the attempt to load the cache when catching this, after the lock that blocks the event delivery has ben released and required.

Since:
4.0M2
Version:
$Id: c826a90713a26cf5e4f8dda43bdbee757f0fc063 $
See Also:
Serialized Form

Constructor Summary
ConflictingInsertionException()
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConflictingInsertionException

public ConflictingInsertionException()


Copyright © 2004-2013 XWiki. All Rights Reserved.