Class WaitStep
java.lang.Object
com.broadleafcommerce.orchestration.internal.WaitStep
- All Implemented Interfaces:
SimpleActivity
,InterruptAware
,Interruptible
Special type of step handled internally by Broadleaf. Represents a simple thread pause for a
specified duration. Suitable for short wait intervals (not generally suited for long waits).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA human-readable description for this activity.getName()
The unique name for this business task.long
void
Perform necessary operations to immediately wrap up execution before cancellation or pausevoid
setInterruptPollingInterval
(Duration interruptPollingInterval) void
setStartTime
(long startTime) void
setTimeout
(Duration timeout) void
setWaitDuration
(Duration waitDuration) Begin execution of the taskMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.orchestration.internal.Interruptible
allowThreadInterrupt, isInterrupted
Methods inherited from interface com.broadleafcommerce.orchestration.client.SimpleActivity
getLocalCache, getWorkflowInformation, log, putLocalCache
-
Field Details
-
WAIT_STEP_ACTIVITY_NAME
- See Also:
-
WAIT_STEP_ACTIVITY_DESCRIPTION
- See Also:
-
WAIT_COMPLETION_RESPONSE
- See Also:
-
-
Constructor Details
-
WaitStep
-
WaitStep
public WaitStep()
-
-
Method Details
-
interrupt
public void interrupt()Description copied from interface:InterruptAware
Perform necessary operations to immediately wrap up execution before cancellation or pause- Specified by:
interrupt
in interfaceInterruptAware
-
start
Description copied from interface:SimpleActivity
Begin execution of the task- Specified by:
start
in interfaceSimpleActivity
- Parameters:
context
- Any information needed to perform the task- Returns:
- status and context data resulting from execution
-
getName
Description copied from interface:SimpleActivity
The unique name for this business task. Should match the Spring bean name for the activity bean.- Specified by:
getName
in interfaceSimpleActivity
- Returns:
- The unique name for this business task.
-
getDescription
Description copied from interface:SimpleActivity
A human-readable description for this activity. Generally also unique like the name to ensure clarity in the admin UI.- Specified by:
getDescription
in interfaceSimpleActivity
- Returns:
- A human-readable description for this activity.
-
getWaitDuration
-
setWaitDuration
-
getTimeout
-
setTimeout
-
getStartTime
public long getStartTime() -
setStartTime
public void setStartTime(long startTime) -
getInterruptPollingInterval
-
setInterruptPollingInterval
-