org.camunda.bpm.engine.impl.cmd
Class FetchExternalTasksCmd

java.lang.Object
  extended by org.camunda.bpm.engine.impl.cmd.FetchExternalTasksCmd
All Implemented Interfaces:
Command<List<LockedExternalTask>>

public class FetchExternalTasksCmd
extends Object
implements Command<List<LockedExternalTask>>

Author:
Thorben Lindhauer, Christopher Zell

Field Summary
protected  Map<String,TopicFetchInstruction> fetchInstructions
           
protected static EnginePersistenceLogger LOG
           
protected  int maxResults
           
protected  boolean usePriority
           
protected  String workerId
           
 
Constructor Summary
FetchExternalTasksCmd(String workerId, int maxResults, Map<String,TopicFetchInstruction> instructions)
           
FetchExternalTasksCmd(String workerId, int maxResults, Map<String,TopicFetchInstruction> instructions, boolean usePriority)
           
 
Method Summary
 List<LockedExternalTask> execute(CommandContext commandContext)
           
protected  void filterOnOptimisticLockingFailure(CommandContext commandContext, List<LockedExternalTask> tasks)
           
protected  void validateInput()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final EnginePersistenceLogger LOG

workerId

protected String workerId

maxResults

protected int maxResults

usePriority

protected boolean usePriority

fetchInstructions

protected Map<String,TopicFetchInstruction> fetchInstructions
Constructor Detail

FetchExternalTasksCmd

public FetchExternalTasksCmd(String workerId,
                             int maxResults,
                             Map<String,TopicFetchInstruction> instructions)

FetchExternalTasksCmd

public FetchExternalTasksCmd(String workerId,
                             int maxResults,
                             Map<String,TopicFetchInstruction> instructions,
                             boolean usePriority)
Method Detail

execute

public List<LockedExternalTask> execute(CommandContext commandContext)
Specified by:
execute in interface Command<List<LockedExternalTask>>

filterOnOptimisticLockingFailure

protected void filterOnOptimisticLockingFailure(CommandContext commandContext,
                                                List<LockedExternalTask> tasks)

validateInput

protected void validateInput()


Copyright © 2017 camunda services GmbH. All rights reserved.