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

Field Summary
protected  Map<String,TopicFetchInstruction> fetchInstructions
           
protected static EnginePersistenceLogger LOG
           
protected  int maxResults
           
protected  String workerId
           
 
Constructor Summary
FetchExternalTasksCmd(String workerId, int maxResults, Map<String,TopicFetchInstruction> instructions)
           
 
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

fetchInstructions

protected Map<String,TopicFetchInstruction> fetchInstructions
Constructor Detail

FetchExternalTasksCmd

public FetchExternalTasksCmd(String workerId,
                             int maxResults,
                             Map<String,TopicFetchInstruction> instructions)
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 © 2016 camunda services GmbH. All rights reserved.