Class 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 Detail

      • 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
    • Constructor Detail

      • SpringTopicSubscriptionImpl

        public SpringTopicSubscriptionImpl()
    • 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)
      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in interface SpringTopicSubscription
        Returns:
        • true when the topic subscription is already released for execution
        • false when the topic subscription is not already released for execution; call SpringTopicSubscription.open() to release the topic for execution
      • closeInternally

        public void closeInternally()
      • close

        public void close()
        Description copied from interface: SpringTopicSubscription
        Delegates to TopicSubscription.close().
        Specified by:
        close in interface SpringTopicSubscription
        Specified by:
        close in interface org.camunda.bpm.client.topic.TopicSubscription
        See Also:
        TopicSubscription.close()
      • setExternalTaskHandler

        public void setExternalTaskHandler​(org.camunda.bpm.client.task.ExternalTaskHandler externalTaskHandler)
      • setSubscriptionConfiguration

        public void setSubscriptionConfiguration​(SubscriptionConfiguration subscriptionConfiguration)
      • getTopicName

        public String getTopicName()
        Specified by:
        getTopicName in interface org.camunda.bpm.client.topic.TopicSubscription
      • getLockDuration

        public Long getLockDuration()
        Specified by:
        getLockDuration in interface org.camunda.bpm.client.topic.TopicSubscription
      • getExternalTaskHandler

        public org.camunda.bpm.client.task.ExternalTaskHandler getExternalTaskHandler()
        Specified by:
        getExternalTaskHandler in interface org.camunda.bpm.client.topic.TopicSubscription
      • getVariableNames

        public List<String> getVariableNames()
        Specified by:
        getVariableNames in interface org.camunda.bpm.client.topic.TopicSubscription
      • isLocalVariables

        public boolean isLocalVariables()
        Specified by:
        isLocalVariables in interface org.camunda.bpm.client.topic.TopicSubscription
      • getBusinessKey

        public String getBusinessKey()
        Specified by:
        getBusinessKey in interface org.camunda.bpm.client.topic.TopicSubscription
      • getProcessDefinitionId

        public String getProcessDefinitionId()
        Specified by:
        getProcessDefinitionId in interface org.camunda.bpm.client.topic.TopicSubscription
      • getProcessDefinitionIdIn

        public List<String> getProcessDefinitionIdIn()
        Specified by:
        getProcessDefinitionIdIn in interface org.camunda.bpm.client.topic.TopicSubscription
      • getProcessDefinitionKey

        public String getProcessDefinitionKey()
        Specified by:
        getProcessDefinitionKey in interface org.camunda.bpm.client.topic.TopicSubscription
      • getProcessDefinitionKeyIn

        public List<String> getProcessDefinitionKeyIn()
        Specified by:
        getProcessDefinitionKeyIn in interface org.camunda.bpm.client.topic.TopicSubscription
      • getProcessDefinitionVersionTag

        public String getProcessDefinitionVersionTag()
        Specified by:
        getProcessDefinitionVersionTag in interface org.camunda.bpm.client.topic.TopicSubscription
      • getProcessVariables

        public Map<String,​Object> getProcessVariables()
        Specified by:
        getProcessVariables in interface org.camunda.bpm.client.topic.TopicSubscription
      • isWithoutTenantId

        public boolean isWithoutTenantId()
        Specified by:
        isWithoutTenantId in interface org.camunda.bpm.client.topic.TopicSubscription
      • getTenantIdIn

        public List<String> getTenantIdIn()
        Specified by:
        getTenantIdIn in interface org.camunda.bpm.client.topic.TopicSubscription
      • isIncludeExtensionProperties

        public boolean isIncludeExtensionProperties()
        Specified by:
        isIncludeExtensionProperties in interface org.camunda.bpm.client.topic.TopicSubscription
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception