Class ThirdPartyInteractionLatencySimulationActivity

java.lang.Object
org.broadleafcommerce.core.workflow.BaseActivity<ProcessContext<Object>>
org.broadleafcommerce.core.util.ThirdPartyInteractionLatencySimulationActivity
All Implemented Interfaces:
Activity<ProcessContext<Object>>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.core.Ordered

public class ThirdPartyInteractionLatencySimulationActivity extends BaseActivity<ProcessContext<Object>>
Simple workflow activity to simulate an amount of latency introduced by communicating with a third party provider (e.g. credit card processing). Useful for load testing.
Author:
Jeff Fischer
  • Constructor Details

    • ThirdPartyInteractionLatencySimulationActivity

      public ThirdPartyInteractionLatencySimulationActivity()
  • Method Details

    • execute

      public ProcessContext<Object> execute(ProcessContext<Object> context) throws Exception
      Description copied from interface: Activity
      Called by the encompassing processor to activate the execution of the Activity
      Parameters:
      context - - process context for this workflow
      Returns:
      resulting process context
      Throws:
      Exception
    • getWaitTime

      public long getWaitTime()
    • setWaitTime

      public void setWaitTime(long waitTime)