Interface EffectorProcess
@PublicApi
public interface EffectorProcess
Represents an Effector preview, effect application, or undo
background process started by a user.
Please note that an instance of this class is just a snapshot of
the state of the process at the time when the instance itself was created.
For those attributes that are supposed to change over time, like
status, calling the corresponding method on the same
instance will not return up-to-date values, you must obtain a new
EffectorProcess instance instead.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents the status of an effector process. -
Method Summary
Modifier and TypeMethodDescriptionGenerated effects for preview, not yet applied.longgetId()longReturns the ID of this process'ProcessHandle.boolean
-
Method Details
-
getId
long getId()- Returns:
- process ID
-
getProcessHandleId
long getProcessHandleId()Returns the ID of this process'ProcessHandle. The process handle can be used to check the progress of the process.- Returns:
- process handle ID
- See Also:
-
getEffectorPreview
Generated effects for preview, not yet applied. Non-empty ifgetStatus()is one ofCALCULATED,QUEUED, orIN_PROGRESS. -
getStatus
- Returns:
- the status of the process
-
getUserKey
- Returns:
- the userkey of the process owner
-
getStartTime
- Returns:
- the timestamp when the process started doing actual work, i.e.
transitioned to the
CALCULATINGorIN_PROGRESSstatus
-
getFinishTime
- Returns:
- the timestamp when the process finished calculating the preview or applying effects.
-
getRevertedProcessId
- Returns:
- the ID of an earlier effector process whose effects are being reverted by this process, if applicable
-
isAcknowledged
boolean isAcknowledged()- Returns:
- the "acknowledged" flag for this process
- See Also:
-