Class SpringTopicSubscriptionImpl
- java.lang.Object
-
- org.camunda.bpm.client.spring.impl.subscription.SpringTopicSubscriptionImpl
-
- All Implemented Interfaces:
SpringTopicSubscription,org.camunda.bpm.client.topic.TopicSubscription,org.springframework.beans.factory.InitializingBean
public class SpringTopicSubscriptionImpl extends Object implements SpringTopicSubscription, org.springframework.beans.factory.InitializingBean
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationEventPublisherapplicationEventPublisherprotected org.camunda.bpm.client.ExternalTaskClientclientprotected org.camunda.bpm.client.task.ExternalTaskHandlerexternalTaskHandlerprotected static SubscriptionLoggerUtilLOGprotected SubscriptionConfigurationsubscriptionConfigurationprotected org.camunda.bpm.client.topic.TopicSubscriptiontopicSubscriptionprotected org.camunda.bpm.client.topic.TopicSubscriptionBuildertopicSubscriptionBuilder
-
Constructor Summary
Constructors Constructor Description SpringTopicSubscriptionImpl()
-
Method Summary
-
-
-
Field Detail
-
LOG
protected static final SubscriptionLoggerUtil LOG
-
subscriptionConfiguration
protected SubscriptionConfiguration subscriptionConfiguration
-
externalTaskHandler
protected org.camunda.bpm.client.task.ExternalTaskHandler externalTaskHandler
-
topicSubscriptionBuilder
protected org.camunda.bpm.client.topic.TopicSubscriptionBuilder topicSubscriptionBuilder
-
topicSubscription
protected org.camunda.bpm.client.topic.TopicSubscription topicSubscription
-
client
@Autowired protected org.camunda.bpm.client.ExternalTaskClient client
-
applicationEventPublisher
@Autowired protected org.springframework.context.ApplicationEventPublisher applicationEventPublisher
-
-
Method Detail
-
isEventThatCanStartSubscription
protected Predicate<org.springframework.context.ApplicationEvent> isEventThatCanStartSubscription()
-
start
@EventListener public void start(org.springframework.context.ApplicationEvent event)
-
initialize
public void initialize()
-
publishInitializedEvent
protected void publishInitializedEvent(String topicName)
-
open
public void open()
Description copied from interface:SpringTopicSubscriptionReleases the topic subscription for asynchronous execution whenSpringTopicSubscription.isAutoOpen()isfalse- Specified by:
openin interfaceSpringTopicSubscription
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfaceSpringTopicSubscription- Returns:
truewhen the topic subscription is already released for executionfalsewhen the topic subscription is not already released for execution; callSpringTopicSubscription.open()to release the topic for execution
-
closeInternally
public void closeInternally()
-
close
public void close()
Description copied from interface:SpringTopicSubscriptionDelegates toTopicSubscription.close().- Specified by:
closein interfaceSpringTopicSubscription- Specified by:
closein interfaceorg.camunda.bpm.client.topic.TopicSubscription- See Also:
TopicSubscription.close()
-
isAutoOpen
public boolean isAutoOpen()
- Specified by:
isAutoOpenin interfaceSpringTopicSubscription- Returns:
truewhen the topic subscription is automatically released for executionfalsewhen you need to callSpringTopicSubscription.open()to release the topic for execution
-
setExternalTaskHandler
public void setExternalTaskHandler(org.camunda.bpm.client.task.ExternalTaskHandler externalTaskHandler)
-
getSubscriptionConfiguration
public SubscriptionConfiguration getSubscriptionConfiguration()
-
setSubscriptionConfiguration
public void setSubscriptionConfiguration(SubscriptionConfiguration subscriptionConfiguration)
-
getTopicName
public String getTopicName()
- Specified by:
getTopicNamein interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getLockDuration
public Long getLockDuration()
- Specified by:
getLockDurationin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getExternalTaskHandler
public org.camunda.bpm.client.task.ExternalTaskHandler getExternalTaskHandler()
- Specified by:
getExternalTaskHandlerin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getVariableNames
public List<String> getVariableNames()
- Specified by:
getVariableNamesin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
isLocalVariables
public boolean isLocalVariables()
- Specified by:
isLocalVariablesin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getBusinessKey
public String getBusinessKey()
- Specified by:
getBusinessKeyin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getProcessDefinitionId
public String getProcessDefinitionId()
- Specified by:
getProcessDefinitionIdin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getProcessDefinitionIdIn
public List<String> getProcessDefinitionIdIn()
- Specified by:
getProcessDefinitionIdInin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getProcessDefinitionKey
public String getProcessDefinitionKey()
- Specified by:
getProcessDefinitionKeyin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getProcessDefinitionKeyIn
public List<String> getProcessDefinitionKeyIn()
- Specified by:
getProcessDefinitionKeyInin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getProcessDefinitionVersionTag
public String getProcessDefinitionVersionTag()
- Specified by:
getProcessDefinitionVersionTagin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getProcessVariables
public Map<String,Object> getProcessVariables()
- Specified by:
getProcessVariablesin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
isWithoutTenantId
public boolean isWithoutTenantId()
- Specified by:
isWithoutTenantIdin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getTenantIdIn
public List<String> getTenantIdIn()
- Specified by:
getTenantIdInin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
isIncludeExtensionProperties
public boolean isIncludeExtensionProperties()
- Specified by:
isIncludeExtensionPropertiesin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
-