Package com.thinkaurelius.titan.diskstorage.locking

Examples of com.thinkaurelius.titan.diskstorage.locking.TemporaryLockingException


        try {
            lock.acquire();
            log.debug("Locked {} in store {}", lockID, lockColumnFamily.getName());
            return new AstyanaxLockStatus(approxTimeNS, TimeUnit.NANOSECONDS, lock);
        } catch (StaleLockException e) {
            throw new TemporaryLockingException(e); // TODO handle gracefully?
        } catch (BusyLockException e) {
            throw new TemporaryLockingException(e); // TODO handle gracefully?
        } catch (Exception e) {
            throw new PermanentLockingException(e);
        }
    }
View Full Code Here


                if (idApplicationWaitMS > 0)
                    TimeUtility.INSTANCE.sleepUntil(System.currentTimeMillis() + idApplicationWaitMS, log);
            }
        }

        throw new TemporaryLockingException("Exceeded timeout count [" + idApplicationRetryCount + "] when attempting to allocate id block");
    }
View Full Code Here

                if (txh != null) txh.rollback();
                if (idApplicationWaitMS > 0)
                    TimeUtility.INSTANCE.sleepUntil(System.currentTimeMillis() + idApplicationWaitMS, log);
            }
        }
        throw new TemporaryLockingException("Exceeded timeout count [" + idApplicationRetryCount + "] when attempting to allocate next id block");
    }
View Full Code Here

TOP

Related Classes of com.thinkaurelius.titan.diskstorage.locking.TemporaryLockingException

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.