Apache Ignite.NET
Apache.Ignite.Core.Cache.ICacheLock Interface Reference

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

Inheritance diagram for Apache.Ignite.Core.Cache.ICacheLock:

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 Apache.Ignite.Core.Cache.ICacheLock.Enter ( )
void Apache.Ignite.Core.Cache.ICacheLock.Exit ( )
bool Apache.Ignite.Core.Cache.ICacheLock.TryEnter ( )
Returns
True if the current thread acquires the lock; otherwise, false.
bool Apache.Ignite.Core.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.