public class GenericActivityWorker extends GenericWorker
Constructor and Description |
---|
GenericActivityWorker() |
GenericActivityWorker(AmazonSimpleWorkflow service,
String domain,
String taskListToPoll) |
Modifier and Type | Method and Description |
---|---|
ActivityImplementationFactory |
getActivityImplementationFactory() |
int |
getTaskExecutorThreadPoolSize() |
static void |
registerActivityType(AmazonSimpleWorkflow service,
String domain,
ActivityType activityType,
ActivityTypeRegistrationOptions registrationOptions,
String taskListToPoll) |
static void |
registerActivityTypes(AmazonSimpleWorkflow service,
String domain,
String defaultTaskList,
ActivityImplementationFactory activityImplementationFactory) |
void |
registerTypesToPoll()
Try to register every type (activity or workflow depending on worker)
that are configured with the worker.
|
void |
setActivityImplementationFactory(ActivityImplementationFactory activityImplementationFactory) |
void |
setTaskExecutorThreadPoolSize(int taskExecutorThreadPoolSize) |
String |
toString() |
awaitTermination, getDomain, getDomainRetentionPeriodInDays, getIdentity, getMaximumPollRateIntervalMilliseconds, getMaximumPollRatePerSecond, getPollBackoffCoefficient, getPollBackoffInitialInterval, getPollBackoffMaximumInterval, getPollThreadCount, getService, getTaskListToPoll, getUncaughtExceptionHandler, isDisableServiceShutdownOnStop, isDisableTypeRegistrationOnStart, isRegisterDomain, isRunning, resumePolling, setDisableServiceShutdownOnStop, setDisableTypeRegistrationOnStart, setDomain, setDomainRetentionPeriodInDays, setIdentity, setMaximumPollRateIntervalMilliseconds, setMaximumPollRatePerSecond, setPollBackoffCoefficient, setPollBackoffInitialInterval, setPollBackoffMaximumInterval, setPollThreadCount, setRegisterDomain, setService, setTaskListToPoll, setUncaughtExceptionHandler, shutdown, shutdownAndAwaitTermination, shutdownNow, start, suspendPolling
public GenericActivityWorker(AmazonSimpleWorkflow service, String domain, String taskListToPoll)
public GenericActivityWorker()
public ActivityImplementationFactory getActivityImplementationFactory()
public void setActivityImplementationFactory(ActivityImplementationFactory activityImplementationFactory)
public int getTaskExecutorThreadPoolSize()
public void setTaskExecutorThreadPoolSize(int taskExecutorThreadPoolSize)
public String toString()
toString
in class GenericWorker
public void registerTypesToPoll()
WorkerBase
public static void registerActivityTypes(AmazonSimpleWorkflow service, String domain, String defaultTaskList, ActivityImplementationFactory activityImplementationFactory)
public static void registerActivityType(AmazonSimpleWorkflow service, String domain, ActivityType activityType, ActivityTypeRegistrationOptions registrationOptions, String taskListToPoll) throws AmazonServiceException
AmazonServiceException
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.