org.multiverse.api.exceptions
Class LockNotFreeReadConflict

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by org.multiverse.api.exceptions.ControlFlowError
              extended by org.multiverse.api.exceptions.ReadConflict
                  extended by org.multiverse.api.exceptions.LockNotFreeReadConflict
All Implemented Interfaces:
Serializable

public class LockNotFreeReadConflict
extends ReadConflict

A ReadConflict that indicates that a read failed because the item was locked.

The idea is that this exception should not be thrown because you don't want a reader to be blocked by a writer. But depending on the implementation it could happen that it can't determine if the correct version is available. In the AlphaStm this can happen while doing the actual commit, but will be removed in the near future.

Author:
Peter Veentjer.
See Also:
Serialized Form

Field Summary
static LockNotFreeReadConflict INSTANCE
           
static boolean reuse
           
 
Constructor Summary
LockNotFreeReadConflict()
           
LockNotFreeReadConflict(String message)
           
LockNotFreeReadConflict(String message, Throwable cause)
           
LockNotFreeReadConflict(Throwable cause)
           
 
Method Summary
static LockNotFreeReadConflict newLockNotFreeReadConflict()
           
 
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
 

Field Detail

INSTANCE

public static final LockNotFreeReadConflict INSTANCE

reuse

public static final boolean reuse
Constructor Detail

LockNotFreeReadConflict

public LockNotFreeReadConflict()

LockNotFreeReadConflict

public LockNotFreeReadConflict(String message)

LockNotFreeReadConflict

public LockNotFreeReadConflict(String message,
                               Throwable cause)

LockNotFreeReadConflict

public LockNotFreeReadConflict(Throwable cause)
Method Detail

newLockNotFreeReadConflict

public static LockNotFreeReadConflict newLockNotFreeReadConflict()


Copyright © 2008-2010 Multiverse. All Rights Reserved.