com.amazonaws.services.simpleworkflow.flow
Class WorkflowWorker
java.lang.Object
com.amazonaws.services.simpleworkflow.flow.WorkflowWorker
- All Implemented Interfaces:
- Suspendable, SuspendableWorker, WorkerBase, WorkerLifecycle
public class WorkflowWorker
- extends Object
- implements WorkerBase
WorkflowWorker
public WorkflowWorker(AmazonSimpleWorkflow service,
String domain,
String taskListToPoll)
getService
public AmazonSimpleWorkflow getService()
- Specified by:
getService
in interface WorkerBase
getDomain
public String getDomain()
- Specified by:
getDomain
in interface WorkerBase
isRegisterDomain
public boolean isRegisterDomain()
- Specified by:
isRegisterDomain
in interface WorkerBase
setRegisterDomain
public void setRegisterDomain(boolean registerDomain)
- Specified by:
setRegisterDomain
in interface WorkerBase
getDomainRetentionPeriodInDays
public long getDomainRetentionPeriodInDays()
- Specified by:
getDomainRetentionPeriodInDays
in interface WorkerBase
setDomainRetentionPeriodInDays
public void setDomainRetentionPeriodInDays(long domainRetentionPeriodInDays)
- Specified by:
setDomainRetentionPeriodInDays
in interface WorkerBase
getTaskListToPoll
public String getTaskListToPoll()
- Specified by:
getTaskListToPoll
in interface WorkerBase
getMaximumPollRatePerSecond
public double getMaximumPollRatePerSecond()
- Specified by:
getMaximumPollRatePerSecond
in interface WorkerBase
setMaximumPollRatePerSecond
public void setMaximumPollRatePerSecond(double maximumPollRatePerSecond)
- Specified by:
setMaximumPollRatePerSecond
in interface WorkerBase
getMaximumPollRateIntervalMilliseconds
public int getMaximumPollRateIntervalMilliseconds()
- Specified by:
getMaximumPollRateIntervalMilliseconds
in interface WorkerBase
setMaximumPollRateIntervalMilliseconds
public void setMaximumPollRateIntervalMilliseconds(int maximumPollRateIntervalMilliseconds)
- Specified by:
setMaximumPollRateIntervalMilliseconds
in interface WorkerBase
getUncaughtExceptionHandler
public Thread.UncaughtExceptionHandler getUncaughtExceptionHandler()
- Specified by:
getUncaughtExceptionHandler
in interface WorkerBase
setUncaughtExceptionHandler
public void setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
- Specified by:
setUncaughtExceptionHandler
in interface WorkerBase
getIdentity
public String getIdentity()
- Specified by:
getIdentity
in interface WorkerBase
setIdentity
public void setIdentity(String identity)
- Specified by:
setIdentity
in interface WorkerBase
getPollBackoffInitialInterval
public long getPollBackoffInitialInterval()
- Specified by:
getPollBackoffInitialInterval
in interface WorkerBase
setPollBackoffInitialInterval
public void setPollBackoffInitialInterval(long backoffInitialInterval)
- Specified by:
setPollBackoffInitialInterval
in interface WorkerBase
getPollBackoffMaximumInterval
public long getPollBackoffMaximumInterval()
- Specified by:
getPollBackoffMaximumInterval
in interface WorkerBase
setPollBackoffMaximumInterval
public void setPollBackoffMaximumInterval(long backoffMaximumInterval)
- Specified by:
setPollBackoffMaximumInterval
in interface WorkerBase
isDisableServiceShutdownOnStop
public boolean isDisableServiceShutdownOnStop()
- Specified by:
isDisableServiceShutdownOnStop
in interface WorkerBase
setDisableServiceShutdownOnStop
public void setDisableServiceShutdownOnStop(boolean disableServiceShutdownOnStop)
- Specified by:
setDisableServiceShutdownOnStop
in interface WorkerBase
getPollBackoffCoefficient
public double getPollBackoffCoefficient()
- Specified by:
getPollBackoffCoefficient
in interface WorkerBase
setPollBackoffCoefficient
public void setPollBackoffCoefficient(double backoffCoefficient)
- Specified by:
setPollBackoffCoefficient
in interface WorkerBase
getPollThreadCount
public int getPollThreadCount()
- Specified by:
getPollThreadCount
in interface WorkerBase
setPollThreadCount
public void setPollThreadCount(int threadCount)
- Specified by:
setPollThreadCount
in interface WorkerBase
registerTypesToPoll
public void registerTypesToPoll()
- Specified by:
registerTypesToPoll
in interface WorkerBase
start
public void start()
- Specified by:
start
in interface WorkerLifecycle
shutdown
public void shutdown()
- Specified by:
shutdown
in interface WorkerLifecycle
shutdownNow
public void shutdownNow()
- Specified by:
shutdownNow
in interface WorkerLifecycle
awaitTermination
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
- Specified by:
awaitTermination
in interface WorkerLifecycle
- Throws:
InterruptedException
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interface WorkerBase
suspendPolling
public void suspendPolling()
- Specified by:
suspendPolling
in interface Suspendable
resumePolling
public void resumePolling()
- Specified by:
resumePolling
in interface Suspendable
setWorkflowImplementationTypes
public void setWorkflowImplementationTypes(Collection<Class<?>> workflowImplementationTypes)
throws InstantiationException,
IllegalAccessException
- Throws:
InstantiationException
IllegalAccessException
getWorkflowImplementationTypes
public Collection<Class<?>> getWorkflowImplementationTypes()
addWorkflowImplementationType
public void addWorkflowImplementationType(Class<?> workflowImplementationType)
throws InstantiationException,
IllegalAccessException
- Throws:
InstantiationException
IllegalAccessException
addWorkflowImplementationType
public void addWorkflowImplementationType(Class<?> workflowImplementationType,
DataConverter converter)
throws InstantiationException,
IllegalAccessException
- Throws:
InstantiationException
IllegalAccessException
toString
public String toString()
- Overrides:
toString
in class Object
shutdownAndAwaitTermination
public boolean shutdownAndAwaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
- Specified by:
shutdownAndAwaitTermination
in interface WorkerLifecycle
- Throws:
InterruptedException
getDataConverter
public DataConverter getDataConverter()
setDefaultConverter
public void setDefaultConverter(DataConverter converter)
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.