public void getWriteLock() { manager.lock(lockId, lockType); isLocked = true; }
public void writeLock() { manager.lock(lockId, lockType); }
public void lock() { try { ManagerUtil.getManager().lock(lockId, LockLevel.fromInt(lockLevel)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } while (true) { try { Thread.currentThread().join(); } catch (InterruptedException f) { //ignore } } } }
public void lock() { try { ManagerUtil.getManager().lock(lockId, LockLevel.fromInt(lockLevel)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } while (true) { try { Thread.currentThread().join(); } catch (InterruptedException f) { //ignore } } } }
public void lock() { try { ManagerUtil.getManager().lock(lockId, LockLevel.fromInt(lockLevel)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } while (true) { try { Thread.currentThread().join(); } catch (InterruptedException f) { //ignore } } } }
public void lock(final LockType lockType) { try { ManagerUtil.getManager().lock(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType))); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } while (true) { try { Thread.currentThread().join(); } catch (InterruptedException f) { //ignore } } } }
public void lock(final LockType lockType) { try { ManagerUtil.getManager().lock(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType))); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } while (true) { try { Thread.currentThread().join(); } catch (InterruptedException f) { //ignore } } } }
public void lock(final LockType lockType) { try { ManagerUtil.getManager().lock(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType))); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } while (true) { try { Thread.currentThread().join(); } catch (InterruptedException f) { //ignore } } } }
/** * Begin volatile lock * * @param TCObject TCObject to lock * @param fieldName Field name holding volatile object * @param level Lock type * @throws AbortedOperationException */ protected static void beginVolatile(final TCObject TCObject, final String fieldName, final LockLevel level) throws AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(TCObject, fieldName); mgr.lock(lock, level); }
/** * Begin volatile lock * * @param TCObject TCObject to lock * @param fieldName Field name holding volatile object * @param level Lock type * @throws AbortedOperationException */ protected static void beginVolatile(final TCObject TCObject, final String fieldName, final LockLevel level) throws AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(TCObject, fieldName); mgr.lock(lock, level); }
@Override public void beginLock(final Object lockID, final LockLevel level) throws AbortedOperationException { LockID lock = manager.generateLockIdentifier(lockID); manager.lock(lock, level); addContext(new LockInfo(lockID, level)); }
@Override public void beginLock(final Object lockID, final LockLevel level) throws AbortedOperationException { LockID lock = manager.generateLockIdentifier(lockID); manager.lock(lock, level); addContext(new LockInfo(lockID, level)); }
/** boolean includeValues, Set<String> attributeSet, List<NVPair> sortAttributes, List<NVPair> aggregators, int maxResults, int batchSize, boolean waitForTxn) throws AbortedOperationException { return getManager().executeQuery(cachename, queryStack, includeKeys, includeValues, attributeSet, sortAttributes, aggregators, maxResults, batchSize, waitForTxn); } protected static SearchQueryResults executeQuery(String cachename, List queryStack, Set<String> attributeSet, Set<String> groupByAttributes, List<NVPair> sortAttributes, List<NVPair> aggregators, int maxResults, int batchSize, boolean waitForTxn) throws AbortedOperationException { return getManager().executeQuery(cachename, queryStack, attributeSet, groupByAttributes, sortAttributes, aggregators, maxResults, batchSize, waitForTxn); } protected static NVPair createNVPair(String name, Object value) { return getManager().createNVPair(name, value); } /** * Begin lock * * @param lockID Lock identifier * @param level Lock type * @throws AbortedOperationException */ protected static void beginLock(final Object lockID, final LockLevel level) throws AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(lockID); mgr.lock(lock, level); }
/** boolean includeValues, Set<String> attributeSet, List<NVPair> sortAttributes, List<NVPair> aggregators, int maxResults, int batchSize, boolean waitForTxn) throws AbortedOperationException { return getManager().executeQuery(cachename, queryStack, includeKeys, includeValues, attributeSet, sortAttributes, aggregators, maxResults, batchSize, waitForTxn); } protected static SearchQueryResults executeQuery(String cachename, List queryStack, Set<String> attributeSet, Set<String> groupByAttributes, List<NVPair> sortAttributes, List<NVPair> aggregators, int maxResults, int batchSize, boolean waitForTxn) throws AbortedOperationException { return getManager().executeQuery(cachename, queryStack, attributeSet, groupByAttributes, sortAttributes, aggregators, maxResults, batchSize, waitForTxn); } protected static NVPair createNVPair(String name, Object value) { return getManager().createNVPair(name, value); } /** * Begin lock * * @param lockID Lock identifier * @param level Lock type * @throws AbortedOperationException */ protected static void beginLock(final Object lockID, final LockLevel level) throws AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(lockID); mgr.lock(lock, level); }