类 ReentrantLockTemplate
java.lang.Object
cn.godmao.lock.template.ReentrantLockTemplate
- 所有已实现的接口:
LockTemplate<ReentrantLock>
-
方法概要
修饰符和类型方法说明voidexecute(Runnable runnable, long waitTime, long leaseTime, ReentrantLock lock) voidexecute(Runnable runnable, long waitTime, ReentrantLock lock) voidexecute(Runnable runnable, ReentrantLock lock) <R> Rexecute(Runnable runnable, R result, long waitTime, long leaseTime, ReentrantLock lock) <R> Rexecute(Runnable runnable, R result, long waitTime, ReentrantLock lock) <R> Rexecute(Runnable runnable, R result, ReentrantLock lock) voidlock(ReentrantLock lock) static ReentrantLockTemplateme()booleanlong<T> Future<T>submit(Runnable runnable, T result, long waitTime, long leaseTime, ReentrantLock lock) <T> Future<T>submit(Runnable runnable, T result, long waitTime, ReentrantLock lock) <T> Future<T>submit(Runnable runnable, T result, ReentrantLock lock) booleantryLock(ReentrantLock lock) booleantryLock(ReentrantLock lock, long waitTime) booleantryLock(ReentrantLock lock, long waitTime, long leaseTime) voidunlock(ReentrantLock lock)
-
方法详细资料
-
get
- 指定者:
get在接口中LockTemplate<ReentrantLock>
-
get
- 指定者:
get在接口中LockTemplate<ReentrantLock>
-
lock
- 指定者:
lock在接口中LockTemplate<ReentrantLock>
-
tryLock
- 指定者:
tryLock在接口中LockTemplate<ReentrantLock>
-
tryLock
- 指定者:
tryLock在接口中LockTemplate<ReentrantLock>- 抛出:
InterruptedException
-
tryLock
- 指定者:
tryLock在接口中LockTemplate<ReentrantLock>
-
unlock
- 指定者:
unlock在接口中LockTemplate<ReentrantLock>
-
remove
- 指定者:
remove在接口中LockTemplate<ReentrantLock>
-
remove
- 指定者:
remove在接口中LockTemplate<ReentrantLock>
-
execute
- 指定者:
execute在接口中LockTemplate<ReentrantLock>
-
execute
- 指定者:
execute在接口中LockTemplate<ReentrantLock>- 抛出:
Exception
-
execute
public void execute(Runnable runnable, long waitTime, long leaseTime, ReentrantLock lock) throws Exception - 指定者:
execute在接口中LockTemplate<ReentrantLock>- 抛出:
Exception
-
execute
- 指定者:
execute在接口中LockTemplate<ReentrantLock>- 抛出:
Exception
-
execute
public <R> R execute(Runnable runnable, R result, long waitTime, ReentrantLock lock) throws Exception - 指定者:
execute在接口中LockTemplate<ReentrantLock>- 抛出:
Exception
-
execute
public <R> R execute(Runnable runnable, R result, long waitTime, long leaseTime, ReentrantLock lock) throws Exception - 指定者:
execute在接口中LockTemplate<ReentrantLock>- 抛出:
Exception
-
submit
- 指定者:
submit在接口中LockTemplate<ReentrantLock>
-
submit
public <T> Future<T> submit(Runnable runnable, T result, long waitTime, ReentrantLock lock) throws Exception - 指定者:
submit在接口中LockTemplate<ReentrantLock>- 抛出:
Exception
-
submit
public <T> Future<T> submit(Runnable runnable, T result, long waitTime, long leaseTime, ReentrantLock lock) throws Exception - 指定者:
submit在接口中LockTemplate<ReentrantLock>- 抛出:
Exception
-
me
-