类 AnnotatedWorker

  • 所有已实现的接口:
    Worker

    public class AnnotatedWorker
    extends Object
    implements Worker
    • 构造器详细资料

      • AnnotatedWorker

        public AnnotatedWorker​(String name,
                               Method workerMethod,
                               Object obj)
    • 方法详细资料

      • getTaskDefName

        public String getTaskDefName()
        从接口复制的说明: Worker
        Retrieve the name of the task definition the worker is currently working on.
        指定者:
        getTaskDefName 在接口中 Worker
        返回:
        the name of the task definition.
      • setPollingInterval

        public void setPollingInterval​(int pollingInterval)
      • getPollingInterval

        public int getPollingInterval()
        从接口复制的说明: Worker
        Override this method to change the interval between polls.
        指定者:
        getPollingInterval 在接口中 Worker
        返回:
        interval in millisecond at which the server should be polled for worker tasks.