public static ConcurrencyException waitFailureOnClientSession(InterruptedException exception) { Object[] args = { }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_FAILURE_CLIENT, args), exception); concurrencyException.setErrorCode(WAIT_FAILURE_CLIENT); return concurrencyException; }
public static ConcurrencyException activeLockAlreadyTransitioned(Thread currentThread) { Object[] args = { currentThread}; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, ACTIVE_LOCK_ALREADY_TRANSITIONED, args)); concurrencyException.setErrorCode(ACTIVE_LOCK_ALREADY_TRANSITIONED); return concurrencyException; }
public static ConcurrencyException waitFailureOnServerSession(InterruptedException exception) { Object[] args = { }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_FAILURE_SERVER, args), exception); concurrencyException.setErrorCode(WAIT_FAILURE_SERVER); return concurrencyException; }
public static ConcurrencyException waitFailureOnSequencingForDatabaseSession(InterruptedException exception) { Object[] args = { }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_FAILURE_SEQ_DATABASE_SESSION, args), exception); concurrencyException.setErrorCode(WAIT_FAILURE_SEQ_DATABASE_SESSION); return concurrencyException; }
public static ConcurrencyException sequencingMultithreadThruConnection(String accessor) { Object[] args = { accessor }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, SEQUENCING_MULTITHREAD_THRU_CONNECTION, args)); concurrencyException.setErrorCode(SEQUENCING_MULTITHREAD_THRU_CONNECTION); return concurrencyException; } }
public static ConcurrencyException signalAttemptedBeforeWait() { Object[] args = { CR }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, SIGNAL_ATTEMPTED_BEFORE_WAIT, args)); concurrencyException.setErrorCode(SIGNAL_ATTEMPTED_BEFORE_WAIT); return concurrencyException; }
public static ConcurrencyException waitFailureOnSequencingForDatabaseSession(InterruptedException exception) { Object[] args = { }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_FAILURE_SEQ_DATABASE_SESSION, args), exception); concurrencyException.setErrorCode(WAIT_FAILURE_SEQ_DATABASE_SESSION); return concurrencyException; }
public static ConcurrencyException sequencingMultithreadThruConnection(String accessor) { Object[] args = { accessor }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, SEQUENCING_MULTITHREAD_THRU_CONNECTION, args)); concurrencyException.setErrorCode(SEQUENCING_MULTITHREAD_THRU_CONNECTION); return concurrencyException; } }
public static ConcurrencyException waitWasInterrupted(String message) { Object[] args = { CR, message }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_WAS_INTERRUPTED, args)); concurrencyException.setErrorCode(WAIT_WAS_INTERRUPTED); return concurrencyException; }
public static ConcurrencyException maxTriesLockOnCloneExceded(Object objectToClone) { Object[] args = { objectToClone, CR }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, MAX_TRIES_EXCEDED_FOR_LOCK_ON_CLONE, args)); concurrencyException.setErrorCode(MAX_TRIES_EXCEDED_FOR_LOCK_ON_CLONE); return concurrencyException; }
public static ConcurrencyException waitWasInterrupted(String message) { Object[] args = { CR, message }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_WAS_INTERRUPTED, args)); concurrencyException.setErrorCode(WAIT_WAS_INTERRUPTED); return concurrencyException; }
public static ConcurrencyException maxTriesLockOnBuildObjectExceded(Thread cacheKeyThread, Thread currentThread) { Object[] args = { cacheKeyThread, currentThread, CR }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT, args)); concurrencyException.setErrorCode(MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT); return concurrencyException; }
public static ConcurrencyException waitWasInterrupted(String message) { Object[] args = { CR, message }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_WAS_INTERRUPTED, args)); concurrencyException.setErrorCode(WAIT_WAS_INTERRUPTED); return concurrencyException; }
public static ConcurrencyException maxTriesLockOnBuildObjectExceded(Thread cacheKeyThread, Thread currentThread) { Object[] args = { cacheKeyThread, currentThread, CR }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT, args)); concurrencyException.setErrorCode(MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT); return concurrencyException; }
public static ConcurrencyException waitFailureOnClientSession(InterruptedException exception) { Object[] args = { }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, WAIT_FAILURE_CLIENT, args), exception); concurrencyException.setErrorCode(WAIT_FAILURE_CLIENT); return concurrencyException; }
public static ConcurrencyException activeLockAlreadyTransitioned(Thread currentThread) { Object[] args = { currentThread}; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, ACTIVE_LOCK_ALREADY_TRANSITIONED, args)); concurrencyException.setErrorCode(ACTIVE_LOCK_ALREADY_TRANSITIONED); return concurrencyException; }
public static ConcurrencyException signalAttemptedBeforeWait() { Object[] args = { CR }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, SIGNAL_ATTEMPTED_BEFORE_WAIT, args)); concurrencyException.setErrorCode(SIGNAL_ATTEMPTED_BEFORE_WAIT); return concurrencyException; }
public static ConcurrencyException maxTriesLockOnMergeExceded(Object objectToClone) { Object[] args = { objectToClone, CR }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, MAX_TRIES_EXCEDED_FOR_LOCK_ON_MERGE, args)); concurrencyException.setErrorCode(MAX_TRIES_EXCEDED_FOR_LOCK_ON_MERGE); return concurrencyException; }
public static ConcurrencyException maxTriesLockOnBuildObjectExceded(Thread cacheKeyThread, Thread currentThread) { Object[] args = { cacheKeyThread, currentThread, CR }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT, args)); concurrencyException.setErrorCode(MAX_TRIES_EXCEDED_FOR_LOCK_ON_BUILD_OBJECT); return concurrencyException; }
public static ConcurrencyException maxTriesLockOnCloneExceded(Object objectToClone) { Object[] args = { objectToClone, CR }; ConcurrencyException concurrencyException = new ConcurrencyException(ExceptionMessageGenerator.buildMessage(ConcurrencyException.class, MAX_TRIES_EXCEDED_FOR_LOCK_ON_CLONE, args)); concurrencyException.setErrorCode(MAX_TRIES_EXCEDED_FOR_LOCK_ON_CLONE); return concurrencyException; }