/** * Evicts a snapshot from cache without generating any SnapshotEvents. */ public synchronized void forgetSnapshot(ObjectId id) { snapshots.remove(id); }
/** * Evicts a snapshot from cache without generating any SnapshotEvents. */ public synchronized void forgetSnapshot(ObjectId id) { snapshots.remove(id); }
private void processDeletedIDs(Collection deletedSnapshotIDs) { // DELETED: evict deleted snapshots if (!deletedSnapshotIDs.isEmpty()) { Iterator it = deletedSnapshotIDs.iterator(); while (it.hasNext()) { snapshots.remove(it.next()); } } }
private void processInvalidatedIDs(Collection invalidatedSnapshotIds) { // INVALIDATED: forget snapshot, treat as expired from cache if (!invalidatedSnapshotIds.isEmpty()) { Iterator it = invalidatedSnapshotIds.iterator(); while (it.hasNext()) { snapshots.remove(it.next()); } } }
private void processDeletedIDs(Collection deletedSnapshotIDs) { // DELETED: evict deleted snapshots if (!deletedSnapshotIDs.isEmpty()) { Iterator it = deletedSnapshotIDs.iterator(); while (it.hasNext()) { snapshots.remove(it.next()); } } }
private void processInvalidatedIDs(Collection invalidatedSnapshotIds) { // INVALIDATED: forget snapshot, treat as expired from cache if (!invalidatedSnapshotIds.isEmpty()) { Iterator it = invalidatedSnapshotIds.iterator(); while (it.hasNext()) { snapshots.remove(it.next()); } } }
@Override public void done(WriterHolder writerHolder) { super.done(writerHolder); //remove memory cache, if history file writer is done synchronized (finishedQueryMasterTasksCache) { finishedQueryMasterTasksCache.remove(queryId); } } };
@Override public void done(WriterHolder writerHolder) { super.done(writerHolder); //remove memory cache, if history file writer is done synchronized (finishedQueryMasterTasksCache) { finishedQueryMasterTasksCache.remove(queryId); } } };
/** * Remove the principal form the cache. This is used when the user changes * his password. */ @Override public void invalidateCache( Dn bindDn ) { synchronized ( credentialCache ) { credentialCache.remove( bindDn.getNormName() ); } } }
public static void commit(String tx) { // till now we dont need to mock transaction isolation transactions.remove(tx); }
private void processUpdateDiffs(Map diffs) { // apply snapshot diffs if (!diffs.isEmpty()) { Iterator it = diffs.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); ObjectId key = (ObjectId) entry.getKey(); DataRow oldSnapshot = (DataRow) snapshots.remove(key); if (oldSnapshot == null) { continue; } DataRow newSnapshot = oldSnapshot.applyDiff((DataRow) entry.getValue()); snapshots.put(key, newSnapshot); } } }
private void processUpdateDiffs(Map diffs) { // apply snapshot diffs if (!diffs.isEmpty()) { Iterator it = diffs.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); ObjectId key = (ObjectId) entry.getKey(); DataRow oldSnapshot = (DataRow) snapshots.remove(key); if (oldSnapshot == null) { continue; } DataRow newSnapshot = oldSnapshot.applyDiff((DataRow) entry.getValue()); snapshots.put(key, newSnapshot); } } }
public static void rollback(String tx) { MockTransaction mockTransaction = (MockTransaction) transactions.get(tx); mockTransaction.rollback(); transactions.remove(tx); }
public void setPassword( Session session, final ITenant theTenant, final String userName, final String password ) throws NotFoundException, RepositoryException { User jackrabbitUser = getJackrabbitUser( theTenant, userName, session ); if ( ( jackrabbitUser == null ) || !TenantUtils.isAccessibleTenant( theTenant == null ? tenantedUserNameUtils .getTenant( jackrabbitUser.getID() ) : theTenant ) ) { throw new NotFoundException( Messages.getInstance().getString( "AbstractJcrBackedUserRoleDao.ERROR_0003_USER_NOT_FOUND" ) ); } jackrabbitUser.changePassword( password ); /** * BISERVER-9906 Clear cache after changing password */ purgeUserFromCache( userName ); userCache.remove( jackrabbitUser.getID() ); }