public class

SerReentrantLock

extends Object
implements Lock
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.serialization.objects.SerReentrantLock

Class Overview

Wrapper for a Java ReentrantLock that supports serialization.

Summary

Public Constructors
SerReentrantLock()
SerReentrantLock(boolean fair)
Public Methods
ReentrantLock get()
int getHoldCount()
final int getQueueLength()
int getWaitQueueLength(Condition condition)
final boolean hasQueuedThread(Thread thread)
final boolean hasQueuedThreads()
boolean hasWaiters(Condition condition)
final boolean isFair()
boolean isHeldByCurrentThread()
boolean isLocked()
void lock()
void lockInterruptibly()
Condition newCondition()
boolean tryLock()
boolean tryLock(long timeout, TimeUnit unit)
void unlock()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.concurrent.locks.Lock

Public Constructors

public SerReentrantLock ()

public SerReentrantLock (boolean fair)

Public Methods

public ReentrantLock get ()

public int getHoldCount ()

public final int getQueueLength ()

public int getWaitQueueLength (Condition condition)

public final boolean hasQueuedThread (Thread thread)

public final boolean hasQueuedThreads ()

public boolean hasWaiters (Condition condition)

public final boolean isFair ()

public boolean isHeldByCurrentThread ()

public boolean isLocked ()

public void lock ()

public void lockInterruptibly ()

Throws
InterruptedException

public Condition newCondition ()

public boolean tryLock ()

public boolean tryLock (long timeout, TimeUnit unit)

Throws
InterruptedException

public void unlock ()