com.amazonaws.services.simpleworkflow.flow.worker
Class GenericActivityWorker
java.lang.Object
com.amazonaws.services.simpleworkflow.flow.worker.GenericWorker
com.amazonaws.services.simpleworkflow.flow.worker.GenericActivityWorker
- All Implemented Interfaces:
- Suspendable, SuspendableWorker, WorkerBase, WorkerLifecycle
public class GenericActivityWorker
- extends GenericWorker
Methods inherited from class com.amazonaws.services.simpleworkflow.flow.worker.GenericWorker |
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, suspendPolling |
GenericActivityWorker
public GenericActivityWorker(AmazonSimpleWorkflow service,
String domain,
String taskListToPoll)
GenericActivityWorker
public GenericActivityWorker()
getActivityImplementationFactory
public ActivityImplementationFactory getActivityImplementationFactory()
setActivityImplementationFactory
public void setActivityImplementationFactory(ActivityImplementationFactory activityImplementationFactory)
getTaskExecutorThreadPoolSize
public int getTaskExecutorThreadPoolSize()
setTaskExecutorThreadPoolSize
public void setTaskExecutorThreadPoolSize(int taskExecutorThreadPoolSize)
createPollSemaphore
protected Semaphore createPollSemaphore()
toString
public String toString()
- Overrides:
toString
in class GenericWorker
getPollThreadNamePrefix
protected String getPollThreadNamePrefix()
- Specified by:
getPollThreadNamePrefix
in class GenericWorker
createPoller
protected TaskPoller createPoller()
- Specified by:
createPoller
in class GenericWorker
registerTypesToPoll
public void registerTypesToPoll()
- Description copied from interface:
WorkerBase
- Try to register every type (activity or workflow depending on worker)
that are configured with the worker.
- See Also:
WorkerBase.setDisableTypeRegistrationOnStart(boolean)
registerActivityTypes
public static void registerActivityTypes(AmazonSimpleWorkflow service,
String domain,
String defaultTaskList,
ActivityImplementationFactory activityImplementationFactory)
registerActivityType
public static void registerActivityType(AmazonSimpleWorkflow service,
String domain,
ActivityType activityType,
ActivityTypeRegistrationOptions registrationOptions,
String taskListToPoll)
throws AmazonServiceException
- Throws:
AmazonServiceException
checkRequredProperties
protected void checkRequredProperties()
- Specified by:
checkRequredProperties
in class GenericWorker
Copyright © 2016. All rights reserved.