IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid
Class LockDeadlockException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.websphere.objectgrid.ObjectGridException
              extended by com.ibm.websphere.objectgrid.LockException
                  extended by com.ibm.websphere.objectgrid.LockTimeoutException
                      extended by com.ibm.websphere.objectgrid.LockDeadlockException
All Implemented Interfaces:
IObjectGridException, Serializable

public class LockDeadlockException
extends LockTimeoutException

This exception is used by the lock manager to indicate that it detected a deadlock. It prevents the deadlock by throwing this exception. Typically, this deadlock is a result of the following scenario: one transaction owns a weaker lock as a result of getting a map entry, and then, at commit time, the transaction attempts to promote the weaker lock to a stronger lock in order to apply the changes to the data store. For example, two transactions try to promote from shared locks to exclusive locks but each transaction already owns a shared lock.

Since:
WAS XD 6.0, XC10
See Also:
Serialized Form

Constructor Summary
LockDeadlockException()
          Constructs a new LockDeadlockException with null as its detail message.
LockDeadlockException(String message)
          Constructs a new LockDeadlockException with the specified detail message.
 
Method Summary
 
Methods inherited from class com.ibm.websphere.objectgrid.LockTimeoutException
forceJavaCore, getLockRequestQueueDetails, getMessage, setLockRequestQueueDetails
 
Methods inherited from class com.ibm.websphere.objectgrid.ObjectGridException
getCause, initCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LockDeadlockException

public LockDeadlockException()
Constructs a new LockDeadlockException with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to the initCause method.

See Also:
ObjectGridException.initCause(Throwable)

LockDeadlockException

public LockDeadlockException(String message)
Constructs a new LockDeadlockException with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to the initCause method.

Parameters:
message - the detail message. The detail message is saved for later retrieval by the getMessage method.
See Also:
ObjectGridException.initCause(Throwable), LockTimeoutException.getMessage()

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.