Class ProcessStateAccess
java.lang.Object
com.kingsrook.qqq.backend.core.actions.processes.ProcessStateAccess
- All Implemented Interfaces:
Serializable
Ownership of the current JVM's process state, separate from client values.
A serialized state cannot grant access in another application instance.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessStateAccessCapture before an asynchronous job can run or expose a job identifier.static voidrequireAccess(ProcessStateAccess access, String expectedName, String expectedUUID) Unowned internal state cannot be made public by presenting its identifier.voidrequireAccess(String expectedName, String expectedUUID) A null expected name is used by process-dependent possible-value lookups.
-
Method Details
-
capture
public static ProcessStateAccess capture(String processName, String processUUID) throws QAuthenticationException Capture before an asynchronous job can run or expose a job identifier.- Throws:
QAuthenticationException
-
requireAccess
public static void requireAccess(ProcessStateAccess access, String expectedName, String expectedUUID) throws QException Unowned internal state cannot be made public by presenting its identifier.- Throws:
QException
-
requireAccess
A null expected name is used by process-dependent possible-value lookups.- Throws:
QException
-