Interface GridCacheLockCallback
-
public interface GridCacheLockCallbackLock and Unlock callbacks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonFreed(GridDistributedCacheEntry entry)Called when entry has no more candidates.voidonLocked(GridDistributedCacheEntry entry)Called when entry gets a first candidate.voidonOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)Called when entry lock ownership changes.
-
-
-
Method Detail
-
onLocked
void onLocked(GridDistributedCacheEntry entry)
Called when entry gets a first candidate. This call happens within entry internal synchronization.- Parameters:
entry- Entry.
-
onOwnerChanged
void onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
Called when entry lock ownership changes. This call happens outside of synchronization so external callbacks can be made from this call.- Parameters:
entry- Entry.owner- Current owner.
-
onFreed
void onFreed(GridDistributedCacheEntry entry)
Called when entry has no more candidates. This call happens within entry internal synchronization.- Parameters:
entry- Entry
-
-