Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2012-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License"). You may not
   * use this file except in compliance with the License. A copy of the License is
   * located at
   * 
   * http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. This file is distributed on
  * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
 package com.amazonaws.services.simpleworkflow.flow.worker;
 
 
 
 
     private final AmazonSimpleWorkflow service;
 
     private final String domain;
     
     private final ActivityTask task;

    
Create an ActivityExecutionContextImpl with the given attributes.

Parameters:
service The com.amazonaws.services.simpleworkflow.AmazonSimpleWorkflow this ActivityExecutionContextImpl will send service calls to.
task The com.amazonaws.services.simpleworkflow.model.ActivityTask this ActivityExecutionContextImpl will be used for.
See also:
com.amazonaws.services.simpleworkflow.flow.ActivityExecutionContext
 
     public ActivityExecutionContextImpl(AmazonSimpleWorkflow serviceString domainActivityTask task) {
         this. = domain;
         this. = service;
         this. = task;
     }

    
 
     @Override
     public void recordActivityHeartbeat(String detailsthrows CancellationException {
         //TODO: call service with the specified minimal interval (through @ActivityExecutionOptions)
         // allowing more frequent calls of this method.
         r.setTaskToken(.getTaskToken());
         r.setDetails(details);
         ActivityTaskStatus status;
         status = .recordActivityTaskHeartbeat(r);
         if (status.isCancelRequested()) {
             throw new CancellationException();
         }
     }

    
 
     @Override
     public ActivityTask getTask() {
         return ;
     }

    
 
     @Override
     public AmazonSimpleWorkflow getService() {
         return ;
     }
 
     @Override
     public String getTaskToken() {
         return .getTaskToken();
     }
 
     @Override
        return .getWorkflowExecution();
    }
    @Override
    public String getDomain() {
        return ;
    }
New to GrepCode? Check out our FAQ X