Package org.jobrunr.utils.resilience
Class Lock
- java.lang.Object
-
- org.jobrunr.utils.resilience.Lock
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Lock extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description Lock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
isLocked()
Lock
lock()
void
unlock()
-
-
-
Method Detail
-
lock
public Lock lock()
-
isLocked
public boolean isLocked()
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
unlock
public void unlock()
-
-