- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.eclipse.persistence.exceptions.EclipseLinkException
-
- org.eclipse.persistence.exceptions.ConcurrencyException
-
- All Implemented Interfaces:
Serializable
public class ConcurrencyException extends EclipseLinkException
Purpose: Concurrency deadlock or interupts will raise this exception.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intACTIVE_LOCK_ALREADY_TRANSITIONEDstatic intMAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECTstatic intMAX_TRIES_EXCEDED_FOR_LOCK_ON_CLONEstatic intMAX_TRIES_EXCEDED_FOR_LOCK_ON_MERGEstatic intSEQUENCING_MULTITHREAD_THRU_CONNECTIONstatic intSIGNAL_ATTEMPTED_BEFORE_WAITstatic intWAIT_FAILURE_CLIENTstatic intWAIT_FAILURE_SEQ_DATABASE_SESSIONstatic intWAIT_FAILURE_SERVERstatic intWAIT_WAS_INTERRUPTED-
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConcurrencyException(String theMessage)INTERNAL: TopLink exceptions should only be thrown by TopLink.protectedConcurrencyException(String theMessage, Exception exception)INTERNAL: TopLink exceptions should only be thrown by TopLink.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConcurrencyExceptionactiveLockAlreadyTransitioned(Thread currentThread)static ConcurrencyExceptionmaxTriesLockOnBuildObjectExceded(Thread cacheKeyThread, Thread currentThread)static ConcurrencyExceptionmaxTriesLockOnCloneExceded(Object objectToClone)static ConcurrencyExceptionmaxTriesLockOnMergeExceded(Object objectToClone)static ConcurrencyExceptionsequencingMultithreadThruConnection(String accessor)static ConcurrencyExceptionsignalAttemptedBeforeWait()static ConcurrencyExceptionwaitFailureOnClientSession(InterruptedException exception)static ConcurrencyExceptionwaitFailureOnSequencingForDatabaseSession(InterruptedException exception)static ConcurrencyExceptionwaitFailureOnServerSession(InterruptedException exception)static ConcurrencyExceptionwaitWasInterrupted(String message)-
Methods inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, getUnformattedMessage, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
-
-
-
Field Detail
-
WAIT_WAS_INTERRUPTED
public static final int WAIT_WAS_INTERRUPTED
- See Also:
- Constant Field Values
-
WAIT_FAILURE_SERVER
public static final int WAIT_FAILURE_SERVER
- See Also:
- Constant Field Values
-
WAIT_FAILURE_CLIENT
public static final int WAIT_FAILURE_CLIENT
- See Also:
- Constant Field Values
-
SIGNAL_ATTEMPTED_BEFORE_WAIT
public static final int SIGNAL_ATTEMPTED_BEFORE_WAIT
- See Also:
- Constant Field Values
-
WAIT_FAILURE_SEQ_DATABASE_SESSION
public static final int WAIT_FAILURE_SEQ_DATABASE_SESSION
- See Also:
- Constant Field Values
-
SEQUENCING_MULTITHREAD_THRU_CONNECTION
public static final int SEQUENCING_MULTITHREAD_THRU_CONNECTION
- See Also:
- Constant Field Values
-
MAX_TRIES_EXCEDED_FOR_LOCK_ON_CLONE
public static final int MAX_TRIES_EXCEDED_FOR_LOCK_ON_CLONE
- See Also:
- Constant Field Values
-
MAX_TRIES_EXCEDED_FOR_LOCK_ON_MERGE
public static final int MAX_TRIES_EXCEDED_FOR_LOCK_ON_MERGE
- See Also:
- Constant Field Values
-
MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT
public static final int MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT
- See Also:
- Constant Field Values
-
ACTIVE_LOCK_ALREADY_TRANSITIONED
public static final int ACTIVE_LOCK_ALREADY_TRANSITIONED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConcurrencyException
protected ConcurrencyException(String theMessage)
INTERNAL: TopLink exceptions should only be thrown by TopLink.
-
-
Method Detail
-
activeLockAlreadyTransitioned
public static ConcurrencyException activeLockAlreadyTransitioned(Thread currentThread)
-
maxTriesLockOnCloneExceded
public static ConcurrencyException maxTriesLockOnCloneExceded(Object objectToClone)
-
maxTriesLockOnMergeExceded
public static ConcurrencyException maxTriesLockOnMergeExceded(Object objectToClone)
-
maxTriesLockOnBuildObjectExceded
public static ConcurrencyException maxTriesLockOnBuildObjectExceded(Thread cacheKeyThread, Thread currentThread)
-
signalAttemptedBeforeWait
public static ConcurrencyException signalAttemptedBeforeWait()
-
waitFailureOnClientSession
public static ConcurrencyException waitFailureOnClientSession(InterruptedException exception)
-
waitFailureOnServerSession
public static ConcurrencyException waitFailureOnServerSession(InterruptedException exception)
-
waitWasInterrupted
public static ConcurrencyException waitWasInterrupted(String message)
-
waitFailureOnSequencingForDatabaseSession
public static ConcurrencyException waitFailureOnSequencingForDatabaseSession(InterruptedException exception)
-
sequencingMultithreadThruConnection
public static ConcurrencyException sequencingMultithreadThruConnection(String accessor)
-
-