Package org.jboss.as.clustering.lock.SharedLocalYieldingClusterLockManager

Examples of org.jboss.as.clustering.lock.SharedLocalYieldingClusterLockManager.LockResult


        this.trace("Acquiring %slock on %s", newLock ? "new " : "", lockKey);

        long timeout = this.cache.getCacheConfiguration().locking().lockAcquisitionTimeout();
        try {
            LockResult result = this.lockManager.lock(lockKey, timeout, newLock);
            this.trace("Lock acquired (%s) on %s", result, lockKey);
            return result;
        } catch (TimeoutException e) {
            throw InfinispanEjbMessages.MESSAGES.lockAcquisitionTimeout(lockKey, timeout);
        } catch (InterruptedException e) {
View Full Code Here


        this.trace("Acquiring %slock on %s", newLock ? "new " : "", lockKey);

        long timeout = this.cache.getCacheConfiguration().locking().lockAcquisitionTimeout();
        try {
            LockResult result = this.lockManager.lock(lockKey, timeout, newLock);
            this.trace("Lock acquired (%s) on %s", result, lockKey);
            return result;
        } catch (TimeoutException e) {
            throw InfinispanEjbMessages.MESSAGES.lockAcquisitionTimeout(lockKey, timeout);
        } catch (InterruptedException e) {
View Full Code Here

            String details = "failure on lock#" + lockPosition +" newLock is #"+newLockPos;
            if (locker.exception != null) {
                throw (Exception) locker.exception;
            }

            LockResult newLockResult = locker.newLock ? LockResult.NEW_LOCK : LockResult.ACQUIRED_FROM_CLUSTER;

            if (sawNewLockResult) {
                if (locker.newLock) {
                    assertTrue("locker result ("+locker.result+") is not ALREADY_HELD or NEW_LOCK, " + details,
                        locker.result == LockResult.ALREADY_HELD || locker.result == LockResult.NEW_LOCK);
View Full Code Here

        Serializable lockKey = this.lockKeyFactory.createLockKey(key);

        this.trace("Acquiring %slock on %s", newLock ? "new " : "", lockKey);

        try {
            LockResult result = this.lockManager.lock(lockKey, this.lockTimeout, newLock);
            this.trace("Lock acquired (%s) on %s", result, lockKey);
            return result;
        } catch (TimeoutException e) {
            throw InfinispanEjbMessages.MESSAGES.lockAcquisitionTimeout(lockKey, this.lockTimeout);
        } catch (InterruptedException e) {
View Full Code Here

        this.trace("Acquiring %slock on %s", newLock ? "new " : "", lockKey);

        long timeout = this.cache.getCacheConfiguration().locking().lockAcquisitionTimeout();
        try {
            LockResult result = this.lockManager.lock(lockKey, timeout, newLock);
            this.trace("Lock acquired (%s) on %s", result, lockKey);
            return result;
        } catch (TimeoutException e) {
            throw InfinispanEjbMessages.MESSAGES.lockAcquisitionTimeout(lockKey, timeout);
        } catch (InterruptedException e) {
View Full Code Here

        Serializable lockKey = this.lockKeyFactory.createLockKey(key);

        this.trace("Acquiring %slock on %s", newLock ? "new " : "", lockKey);

        try {
            LockResult result = this.lockManager.lock(lockKey, this.cache.getConfiguration().getLockAcquisitionTimeout(), newLock);
            this.trace("Lock acquired (%s) on %s", result, lockKey);
            return result;
        } catch (TimeoutException e) {
            throw InfinispanEjbMessages.MESSAGES.lockAcquisitionTimeout(e, lockKey);
        } catch (InterruptedException e) {
View Full Code Here

TOP

Related Classes of org.jboss.as.clustering.lock.SharedLocalYieldingClusterLockManager.LockResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.