public class ExternalTaskQueryTopicBuilderImpl extends Object implements ExternalTaskQueryTopicBuilder
| Modifier and Type | Field and Description |
|---|---|
protected TopicFetchInstruction |
instruction |
protected ExternalTaskQueryBuilderImpl |
queryBuilder |
| Constructor and Description |
|---|
ExternalTaskQueryTopicBuilderImpl(ExternalTaskQueryBuilderImpl queryBuilder,
String topicName,
long lockDuration) |
| Modifier and Type | Method and Description |
|---|---|
List<LockedExternalTask> |
execute()
Performs the fetching.
|
protected void |
submitInstruction() |
ExternalTaskQueryTopicBuilder |
topic(String topicName,
long lockDuration)
Specifies that tasks of a topic should be fetched and locked for
a certain amount of time
|
ExternalTaskQueryTopicBuilder |
variables(List<String> variables)
Define variables to fetch with all tasks for the current topic.
|
ExternalTaskQueryTopicBuilder |
variables(String... variables)
Define variables to fetch with all tasks for the current topic.
|
protected TopicFetchInstruction instruction
protected ExternalTaskQueryBuilderImpl queryBuilder
public ExternalTaskQueryTopicBuilderImpl(ExternalTaskQueryBuilderImpl queryBuilder, String topicName, long lockDuration)
public ExternalTaskQueryTopicBuilder topic(String topicName, long lockDuration)
ExternalTaskQueryBuildertopic in interface ExternalTaskQueryBuildertopicName - the name of the topiclockDuration - the duration in milliseconds for which tasks should be locked;
begins at the time of fetchingpublic List<LockedExternalTask> execute()
ExternalTaskQueryBuilderexecute in interface ExternalTaskQueryBuilderpublic ExternalTaskQueryTopicBuilder variables(String... variables)
ExternalTaskQueryTopicBuildervariables in interface ExternalTaskQueryTopicBuildervariables - the variable names to fetchpublic ExternalTaskQueryTopicBuilder variables(List<String> variables)
ExternalTaskQueryTopicBuildervariables in interface ExternalTaskQueryTopicBuildervariables - the variable names to fetchprotected void submitInstruction()
Copyright © 2015. All rights reserved.