Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2012 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;
 
 import java.util.List;
 
 
 public class SynchronousActivityWorker {
 
     private final SynchronousActivityTaskPoller poller;
 
 
     public SynchronousActivityWorker() {
          = new SynchronousActivityTaskPoller();
     }
 
     public SynchronousActivityWorker(AmazonSimpleWorkflow serviceString domainString taskListToPoll) {
          = new SynchronousActivityTaskPoller(servicedomaintaskListToPoll);
     }
 
     public boolean pollAndProcessSingleActivityTask() throws Throwable {
         return .pollAndProcessSingleTask();
     }
 
     public void setActivitiesImplementations(Iterable<ObjectactivitiesImplementations)
         .setActivitiesImplementations(activitiesImplementations);
     }
 
         return .getActivitiesImplementations();
     }
 
     public List<ActivityTypeaddActivitiesImplementations(Iterable<ObjectactivitiesImplementations)
         return .addActivitiesImplementations(activitiesImplementations);
     }
 
     public List<ActivityTypeaddActivitiesImplementations(Iterable<ObjectactivitiesImplementationsDataConverter dataConverter)
         return .addActivitiesImplementations(activitiesImplementationsdataConverter);
     }
 
     public List<ActivityTypeaddActivitiesImplementation(Object activitiesImplementation)
         return .addActivitiesImplementation(activitiesImplementation);
     }
 
     public List<ActivityTypeaddActivitiesImplementation(Object activitiesImplementationDataConverter converter)
         return .addActivitiesImplementation(activitiesImplementationconverter);
     }
 
         return .getActivityTypesToRegister();
     }
 
         return .getActivityImplementation(activityType);
     }
 
     public AmazonSimpleWorkflow getService() {
         return .getService();
     }
 
     public void setService(AmazonSimpleWorkflow service) {
         .setService(service);
     }
 
     public String getDomain() {
         return .getDomain();
     }
 
     public void setDomain(String domain) {
         .setDomain(domain);
     }
 
     public String getPollTaskList() {
        return .getPollTaskList();
    }
    public void setTaskListToPoll(String taskList) {
        .setTaskListToPoll(taskList);
    }
    public String getIdentity() {
        return .getIdentity();
    }
    public void setIdentity(String identity) {
        .setIdentity(identity);
    }
    }
    public void setReportCompletionRetryParameters(ExponentialRetryParameters reportCompletionRetryParameters) {
        .setReportCompletionRetryParameters(reportCompletionRetryParameters);
    }
        return .getReportFailureRetryParameters();
    }
    public void setReportFailureRetryParameters(ExponentialRetryParameters reportFailureRetryParameters) {
        .setReportFailureRetryParameters(reportFailureRetryParameters);
    }
    public String getTaskListToPoll() {
        return .getTaskListToPoll();
    }
    @Override
    public String toString() {
        return this.getClass().getSimpleName() + "[poller=" +  + ", factory=" +  + "]";
    }
    public void registerTypesToPoll() throws Exception {
        GenericActivityWorker.registerActivityTypes(getService(), getDomain(), getTaskListToPoll(), );
    }
New to GrepCode? Check out our FAQ X