Package org.camunda.bpm.client.impl
Class ExternalTaskClientImpl
- java.lang.Object
-
- org.camunda.bpm.client.impl.ExternalTaskClientImpl
-
- All Implemented Interfaces:
ExternalTaskClient
public class ExternalTaskClientImpl extends java.lang.Object implements ExternalTaskClient
- Author:
- Tassilo Weidner
-
-
Field Summary
Fields Modifier and Type Field Description protected TopicSubscriptionManagertopicSubscriptionManager
-
Constructor Summary
Constructors Constructor Description ExternalTaskClientImpl(TopicSubscriptionManager topicSubscriptionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopicSubscriptionManagergetTopicSubscriptionManager()booleanisActive()voidstart()Starts continuous fetching and locking of tasksvoidstop()Stops continuous fetching and locking of tasksTopicSubscriptionBuildersubscribe(java.lang.String topicName)Creates a fluent builder to create and configure a topic subscription
-
-
-
Field Detail
-
topicSubscriptionManager
protected TopicSubscriptionManager topicSubscriptionManager
-
-
Constructor Detail
-
ExternalTaskClientImpl
public ExternalTaskClientImpl(TopicSubscriptionManager topicSubscriptionManager)
-
-
Method Detail
-
subscribe
public TopicSubscriptionBuilder subscribe(java.lang.String topicName)
Description copied from interface:ExternalTaskClientCreates a fluent builder to create and configure a topic subscription- Specified by:
subscribein interfaceExternalTaskClient- Parameters:
topicName- the client subscribes to- Returns:
- builder to apply configurations on
-
stop
public void stop()
Description copied from interface:ExternalTaskClientStops continuous fetching and locking of tasks- Specified by:
stopin interfaceExternalTaskClient
-
start
public void start()
Description copied from interface:ExternalTaskClientStarts continuous fetching and locking of tasks- Specified by:
startin interfaceExternalTaskClient
-
isActive
public boolean isActive()
- Specified by:
isActivein interfaceExternalTaskClient- Returns:
-
trueif the client is actively fetching for tasks -
falseif the client is not actively fetching for tasks
-
-
getTopicSubscriptionManager
public TopicSubscriptionManager getTopicSubscriptionManager()
-
-