Class AbstractLifecycleLock
java.lang.Object
org.jobrunr.server.lifecycle.AbstractLifecycleLock
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
LifecycleChangeLock, LifecycleReadLock
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractLifecycleLock(BackgroundJobServerLifecycle backgroundJobServerLifecycle) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected abstract voidlock(ReentrantReadWriteLock readWriteLock) protected abstract voidunlock(ReentrantReadWriteLock readWriteLock)
-
Field Details
-
backgroundJobServerLifecycle
-
-
Constructor Details
-
AbstractLifecycleLock
-
-
Method Details
-
lock
-
unlock
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-