| Constructor and Description |
|---|
TracingLock(com.hazelcast.core.ILock lock,
boolean traceWithActiveSpanOnly) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
forceUnlock() |
Object |
getKey()
Deprecated.
|
int |
getLockCount() |
String |
getName() |
String |
getPartitionKey() |
long |
getRemainingLeaseTime() |
String |
getServiceName() |
boolean |
isLocked() |
boolean |
isLockedByCurrentThread() |
void |
lock() |
void |
lock(long leaseTime,
TimeUnit timeUnit) |
void |
lockInterruptibly() |
Condition |
newCondition() |
com.hazelcast.core.ICondition |
newCondition(String name) |
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
boolean |
tryLock(long time,
TimeUnit unit,
long leaseTime,
TimeUnit leaseUnit) |
void |
unlock() |
public TracingLock(com.hazelcast.core.ILock lock,
boolean traceWithActiveSpanOnly)
@Deprecated public Object getKey()
getKey in interface com.hazelcast.core.ILockpublic void lock()
public boolean tryLock()
public boolean tryLock(long time,
TimeUnit unit)
throws InterruptedException
tryLock in interface com.hazelcast.core.ILocktryLock in interface LockInterruptedExceptionpublic boolean tryLock(long time,
TimeUnit unit,
long leaseTime,
TimeUnit leaseUnit)
throws InterruptedException
tryLock in interface com.hazelcast.core.ILockInterruptedExceptionpublic void unlock()
public void lock(long leaseTime,
TimeUnit timeUnit)
lock in interface com.hazelcast.core.ILockpublic void forceUnlock()
forceUnlock in interface com.hazelcast.core.ILockpublic Condition newCondition()
newCondition in interface com.hazelcast.core.ILocknewCondition in interface Lockpublic com.hazelcast.core.ICondition newCondition(String name)
newCondition in interface com.hazelcast.core.ILockpublic boolean isLocked()
isLocked in interface com.hazelcast.core.ILockpublic boolean isLockedByCurrentThread()
isLockedByCurrentThread in interface com.hazelcast.core.ILockpublic int getLockCount()
getLockCount in interface com.hazelcast.core.ILockpublic long getRemainingLeaseTime()
getRemainingLeaseTime in interface com.hazelcast.core.ILockpublic void lockInterruptibly()
throws InterruptedException
lockInterruptibly in interface LockInterruptedExceptionpublic String getPartitionKey()
getPartitionKey in interface com.hazelcast.core.DistributedObjectpublic String getName()
getName in interface com.hazelcast.core.DistributedObjectpublic String getServiceName()
getServiceName in interface com.hazelcast.core.DistributedObjectpublic void destroy()
destroy in interface com.hazelcast.core.DistributedObjectCopyright © 2018-2019–2019. All rights reserved.