Java 类com.amazonaws.services.simpleworkflow.flow.ActivityExecutionContextProviderImpl 实例源码

项目:aws-flow-maven-eclipse-samples    文件:CommonRecipeActivitiesImpl.java   
@Override
public void delayActivity(long time) {
    calls.add("delayActivity");
    ActivityExecutionContextProvider provider = new ActivityExecutionContextProviderImpl();
    ActivityExecutionContext context = provider.getActivityExecutionContext();
    try {
        while (true) {
            Thread.sleep(time * 1000);
            context.recordActivityHeartbeat(null);
        }
    }
    catch (InterruptedException e) {

    }

}
项目:aws-flow-maven-eclipse-samples    文件:CronExampleActivitiesImpl.java   
public CronExampleActivitiesImpl() {
    this(new ActivityExecutionContextProviderImpl());
}
项目:aws-flow-maven-eclipse-samples    文件:CronExampleActivitiesImpl.java   
public CronExampleActivitiesImpl() {
    this(new ActivityExecutionContextProviderImpl());
}
项目:aws-flow-maven-eclipse-samples    文件:PeriodicWorkflowActivitiesImpl.java   
public PeriodicWorkflowActivitiesImpl() {
    this.contextProvider = new ActivityExecutionContextProviderImpl();
}
项目:aws-flow-maven-eclipse-samples    文件:ErrorReportingActivitiesImpl.java   
public ErrorReportingActivitiesImpl() {
    this.contextProvider = new ActivityExecutionContextProviderImpl();
}