Skip to content

Commit

Permalink
# IGNITE-56 Added isLocked() isThreadLocked() methods temporary.
Browse files Browse the repository at this point in the history
  • Loading branch information
sevdokimov-gg committed Feb 10, 2015
1 parent fd63cfd commit aae71de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/core/src/main/java/org/apache/ignite/IgniteCache.java
Expand Up @@ -64,6 +64,8 @@ public interface IgniteCache<K, V> extends javax.cache.Cache<K, V>, IgniteAsyncS
public void evict(K key);
public void promote(K key);
CacheConfiguration configuration();
boolean isLocked(K key);
boolean isLockedByThread(K key);
//public void clear(K key);

/** {@inheritDoc} */
Expand Down
Expand Up @@ -1083,4 +1083,12 @@ public boolean isEmpty() {
@Override public CacheConfiguration configuration() {
return getConfiguration(CacheConfiguration.class);
}

@Override public boolean isLocked(K key) {
return isLocalLocked(key, false);
}

@Override public boolean isLockedByThread(K key) {
return isLocalLocked(key, true);
}
}

0 comments on commit aae71de

Please sign in to comment.