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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationEventPublisherprotected org.camunda.bpm.client.ExternalTaskClientprotected org.camunda.bpm.client.task.ExternalTaskHandlerprotected static final SubscriptionLoggerUtilprotected SubscriptionConfigurationprotected org.camunda.bpm.client.topic.TopicSubscriptionprotected org.camunda.bpm.client.topic.TopicSubscriptionBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()Delegates toTopicSubscription.close().voidorg.camunda.bpm.client.task.ExternalTaskHandlervoidbooleanprotected Predicate<org.springframework.context.ApplicationEvent>booleanbooleanbooleanisOpen()booleanvoidopen()Releases the topic subscription for asynchronous execution whenSpringTopicSubscription.isAutoOpen()isfalseprotected voidpublishInitializedEvent(String topicName) voidsetExternalTaskHandler(org.camunda.bpm.client.task.ExternalTaskHandler externalTaskHandler) voidsetSubscriptionConfiguration(SubscriptionConfiguration subscriptionConfiguration) voidstart(org.springframework.context.ApplicationEvent event) protected String[]
-
Field Details
-
LOG
-
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
-
-
Constructor Details
-
SpringTopicSubscriptionImpl
public SpringTopicSubscriptionImpl()
-
-
Method Details
-
isEventThatCanStartSubscription
-
start
@EventListener public void start(org.springframework.context.ApplicationEvent event) -
initialize
public void initialize() -
publishInitializedEvent
-
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
-
setSubscriptionConfiguration
-
getTopicName
- Specified by:
getTopicNamein interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
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
- Specified by:
getVariableNamesin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
isLocalVariables
public boolean isLocalVariables()- Specified by:
isLocalVariablesin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getBusinessKey
- Specified by:
getBusinessKeyin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getProcessDefinitionId
- Specified by:
getProcessDefinitionIdin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getProcessDefinitionIdIn
- Specified by:
getProcessDefinitionIdInin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getProcessDefinitionKey
- Specified by:
getProcessDefinitionKeyin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getProcessDefinitionKeyIn
- Specified by:
getProcessDefinitionKeyInin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getProcessDefinitionVersionTag
- Specified by:
getProcessDefinitionVersionTagin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getProcessVariables
- Specified by:
getProcessVariablesin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
isWithoutTenantId
public boolean isWithoutTenantId()- Specified by:
isWithoutTenantIdin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
getTenantIdIn
- Specified by:
getTenantIdInin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
isIncludeExtensionProperties
public boolean isIncludeExtensionProperties()- Specified by:
isIncludeExtensionPropertiesin interfaceorg.camunda.bpm.client.topic.TopicSubscription
-
toArray
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-