Uses of Class
com.kingsrook.qqq.backend.core.processes.locks.ProcessLock
Packages that use ProcessLock
-
Uses of ProcessLock in com.kingsrook.qqq.backend.core.processes.locks
Methods in com.kingsrook.qqq.backend.core.processes.locks that return ProcessLockModifier and TypeMethodDescriptionstatic ProcessLock
try to create a process lock, of a given key invalid input: '&' type - but immediately fail if the lock already exists.static ProcessLock
ProcessLockUtils.create
(String key, String typeName, String details, Duration sleepBetweenTries, Duration maxWait) try to create a process lock, of a given key invalid input: '&' type - and re-try if it failed.static ProcessLock
UnableToObtainProcessLockException.getExistingLock()
Getter for existingLockProcessLockOrException.processLock()
Returns the value of theprocessLock
record component.ProcessLock.withCheckInTimestamp
(Instant checkInTimestamp) Fluent setter for checkInTimestampProcessLock.withCreateDate
(Instant createDate) Fluent setter for createDateProcessLock.withDetails
(String details) Fluent setter for detailsProcessLock.withExpiresAtTimestamp
(Instant expiresAtTimestamp) Fluent setter for expiresAtTimestampFluent setter for idFluent setter for keyProcessLock.withModifyDate
(Instant modifyDate) Fluent setter for modifyDateProcessLock.withProcessLockTypeId
(Integer processLockTypeId) Fluent setter for processLockTypeIdProcessLock.withSessionUUID
(String sessionUUID) Fluent setter for sessionUUIDProcessLock.withUserId
(String userId) Fluent setter for userIdMethods in com.kingsrook.qqq.backend.core.processes.locks with parameters of type ProcessLockModifier and TypeMethodDescriptionstatic void
ProcessLockUtils.checkIn
(ProcessLock processLock) Do a check-in, updating the expires-timestamp based on the lock type's default.static void
ProcessLockUtils.checkIn
(ProcessLock processLock, Instant expiresAtTimestamp) Do a check-in, with a specific value for the expiresAtTimestamp - which can be set to null to make it null in the lock.static void
ProcessLockUtils.release
(ProcessLock processLock) void
UnableToObtainProcessLockException.setExistingLock
(ProcessLock existingLock) Setter for existingLockUnableToObtainProcessLockException.withExistingLock
(ProcessLock existingLock) Fluent setter for existingLockMethod parameters in com.kingsrook.qqq.backend.core.processes.locks with type arguments of type ProcessLockModifier and TypeMethodDescriptionstatic void
ProcessLockUtils.releaseMany
(List<ProcessLock> processLocks) Constructors in com.kingsrook.qqq.backend.core.processes.locks with parameters of type ProcessLockModifierConstructorDescriptionCheckInInput
(ProcessLock processLock) ConstructorProcessLockOrException
(ProcessLock processLock) ConstructorProcessLockOrException
(ProcessLock processLock, UnableToObtainProcessLockException unableToObtainProcessLockException) Creates an instance of aProcessLockOrException
record class.