Namespaces

Types

Type CacheLock

Namespace NHibernate.Cache

Interfaces ILockable, ISoftLock

Methods

Properties

Public instance methods

bool Equals(object obj)

Parameters
return bool
object obj

int GetHashCode()

Parameters
return int

Type GetType()

Parameters
return Type

bool IsGettable(long txTimestamp)

locks are not returned to the client!
Parameters
return bool
long txTimestamp

bool IsPuttable(long txTimestamp, object newVersion, IComparer comparator)

Can the timestamped transaction re-cache this locked item now?
Parameters
return bool
long txTimestamp
object newVersion
IComparer comparator

CacheLock Lock(long timeout, int id)

Increment the lock, setting the new lock timeout
Parameters
return CacheLock
long timeout
int id

string ToString()

Parameters
return string

void Unlock(long currentTimestamp)

Decrement the lock, setting the unlock timestamp if now unlocked
Parameters
long currentTimestamp

Public properties

int Id get;

return int

bool IsLock get;

Yes, this is a lock
return bool

bool WasLockedConcurrently get;

Was this lock held concurrently by multiple transactions?
return bool