public class SynchronousActivityTaskPoller extends Object implements TaskPoller
Constructor and Description |
---|
SynchronousActivityTaskPoller() |
SynchronousActivityTaskPoller(AmazonSimpleWorkflow service,
String domain,
String taskListToPoll,
ActivityImplementationFactory activityImplementationFactory) |
public SynchronousActivityTaskPoller(AmazonSimpleWorkflow service, String domain, String taskListToPoll, ActivityImplementationFactory activityImplementationFactory)
public SynchronousActivityTaskPoller()
public AmazonSimpleWorkflow getService()
public void setService(AmazonSimpleWorkflow service)
public String getDomain()
public void setDomain(String domain)
public String getPollTaskList()
public void setTaskListToPoll(String taskList)
public ActivityImplementationFactory getActivityImplementationFactory()
public void setActivityImplementationFactory(ActivityImplementationFactory activityImplementationFactory)
public String getIdentity()
public void setIdentity(String identity)
public ExponentialRetryParameters getReportCompletionRetryParameters()
public void setReportCompletionRetryParameters(ExponentialRetryParameters reportCompletionRetryParameters)
public ExponentialRetryParameters getReportFailureRetryParameters()
public void setReportFailureRetryParameters(ExponentialRetryParameters reportFailureRetryParameters)
public String getTaskListToPoll()
public ActivityTask poll()
#getPollTimeoutInSeconds()
public boolean pollAndProcessSingleTask() throws Exception
pollAndProcessSingleTask
in interface TaskPoller
Exception
protected void execute(ActivityTask task) throws Exception
Exception
protected void respondActivityTaskFailedWithRetry(String taskToken, String reason, String details)
protected void respondActivityTaskFailed(String taskToken, String reason, String details)
protected void respondActivityTaskCanceledWithRetry(String taskToken, String details)
protected void respondActivityTaskCanceled(String taskToken, String details)
protected void respondActivityTaskCompletedWithRetry(String taskToken, String output)
protected void respondActivityTaskCompleted(String taskToken, String output)
public void shutdown()
shutdown
in interface TaskPoller
public void shutdownNow()
shutdownNow
in interface TaskPoller
public boolean awaitTermination(long left, TimeUnit milliseconds) throws InterruptedException
awaitTermination
in interface TaskPoller
InterruptedException
Copyright © 2014. All rights reserved.