Public Member Functions | List of all members
GridGain.Cache.ICacheLock Interface Reference

Cache locking interface. All members are thread-safe and may be used concurrently from multiple threads. More...

Inherits IDisposable.

Public Member Functions

void Enter ()
 Acquires an exclusive lock. More...
 
bool TryEnter ()
 Acquires an exclusive lock only if it is free at the time of invocation. More...
 
bool TryEnter (TimeSpan timeout)
 Attempts, for the specified amount of time, to acquire an exclusive lock. More...
 
void Exit ()
 Releases an exclusive lock on the specified object. IDisposable.Dispose does not call this method and will throw SynchronizationLockException if this lock is acquired. More...
 

Detailed Description

Member Function Documentation

void GridGain.Cache.ICacheLock.Enter ( )
void GridGain.Cache.ICacheLock.Exit ( )
bool GridGain.Cache.ICacheLock.TryEnter ( )
Returns
True if the current thread acquires the lock; otherwise, false.
bool GridGain.Cache.ICacheLock.TryEnter ( TimeSpan  timeout)
Parameters
timeoutA TimeSpan representing the amount of time to wait for the lock. A value of –1 millisecond specifies an infinite wait.
Returns
True if the current thread acquires the lock; otherwise, false.