Пример #1
0
 /** {@inheritDoc} */
 @Override
 public void onFreed(GridDistributedCacheEntry entry) {
   if (entry.isNear()) nearLocked.remove(entry.txKey());
   else locked.remove(entry.txKey());
 }
Пример #2
0
 /** {@inheritDoc} */
 @Override
 public void onLocked(GridDistributedCacheEntry entry) {
   if (entry.isNear()) nearLocked.put(entry.txKey(), entry);
   else locked.put(entry.txKey(), entry);
 }