public class GenericActivityWorker extends GenericWorker
domain, domainRetentionPeriodInDays, MAX_IDENTITY_LENGTH, registerDomain, service, suspendLatch, uncaughtExceptionHandler| Constructor and Description |
|---|
GenericActivityWorker() |
GenericActivityWorker(AmazonSimpleWorkflow service,
String domain,
String taskListToPoll) |
awaitTermination, checkRequiredProperty, checkStarted, 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, suspendPollingpublic 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)
protected Semaphore createPollSemaphore()
public String toString()
toString in class GenericWorkerprotected String getPollThreadNamePrefix()
getPollThreadNamePrefix in class GenericWorkerprotected TaskPoller createPoller()
createPoller in class GenericWorkerpublic void registerTypesToPoll()
WorkerBasepublic 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 com.amazonaws.AmazonServiceException
com.amazonaws.AmazonServiceExceptionprotected void checkRequredProperties()
checkRequredProperties in class GenericWorkerCopyright © 2016. All rights reserved.