public class SpringTopicSubscriptionImpl extends Object implements SpringTopicSubscription, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationEventPublisher |
applicationEventPublisher |
protected ExternalTaskClient |
client |
protected ExternalTaskHandler |
externalTaskHandler |
protected static SubscriptionLoggerUtil |
LOG |
protected SubscriptionConfiguration |
subscriptionConfiguration |
protected TopicSubscription |
topicSubscription |
protected TopicSubscriptionBuilder |
topicSubscriptionBuilder |
| Constructor and Description |
|---|
SpringTopicSubscriptionImpl() |
protected static final SubscriptionLoggerUtil LOG
protected SubscriptionConfiguration subscriptionConfiguration
protected ExternalTaskHandler externalTaskHandler
protected TopicSubscriptionBuilder topicSubscriptionBuilder
protected TopicSubscription topicSubscription
@Autowired protected ExternalTaskClient client
@Autowired protected org.springframework.context.ApplicationEventPublisher applicationEventPublisher
protected java.util.function.Predicate<org.springframework.context.ApplicationEvent> isEventThatCanStartSubscription()
@EventListener public void start(org.springframework.context.ApplicationEvent event)
public void initialize()
protected void publishInitializedEvent(String topicName)
public void open()
SpringTopicSubscriptionSpringTopicSubscription.isAutoOpen() is
falseopen in interface SpringTopicSubscriptionpublic boolean isOpen()
isOpen in interface SpringTopicSubscriptiontrue 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 executionpublic void closeInternally()
public void close()
SpringTopicSubscriptionTopicSubscription.close().close in interface SpringTopicSubscriptionclose in interface TopicSubscriptionTopicSubscription.close()public boolean isAutoOpen()
isAutoOpen in interface SpringTopicSubscriptiontrue when the topic subscription is automatically released for execution
false when you need to call SpringTopicSubscription.open() to release the topic for executionpublic void setExternalTaskHandler(ExternalTaskHandler externalTaskHandler)
public SubscriptionConfiguration getSubscriptionConfiguration()
public void setSubscriptionConfiguration(SubscriptionConfiguration subscriptionConfiguration)
public String getTopicName()
getTopicName in interface TopicSubscriptionpublic Long getLockDuration()
getLockDuration in interface TopicSubscriptionnull, the client or the default lock duration is applied
public ExternalTaskHandler getExternalTaskHandler()
getExternalTaskHandler in interface TopicSubscriptionpublic List<String> getVariableNames()
getVariableNames in interface TopicSubscriptionpublic boolean isLocalVariables()
isLocalVariables in interface TopicSubscriptionfalse means all variables visible in the
scope of the external task will be fetched, true means
only local variables (to the scope of the external task) will be
fetched.public String getBusinessKey()
getBusinessKey in interface TopicSubscriptionpublic String getProcessDefinitionId()
getProcessDefinitionId in interface TopicSubscriptionpublic List<String> getProcessDefinitionIdIn()
getProcessDefinitionIdIn in interface TopicSubscriptionpublic String getProcessDefinitionKey()
getProcessDefinitionKey in interface TopicSubscriptionpublic List<String> getProcessDefinitionKeyIn()
getProcessDefinitionKeyIn in interface TopicSubscriptionpublic String getProcessDefinitionVersionTag()
getProcessDefinitionVersionTag in interface TopicSubscriptionpublic Map<String,Object> getProcessVariables()
getProcessVariables in interface TopicSubscriptionpublic boolean isWithoutTenantId()
isWithoutTenantId in interface TopicSubscriptionpublic List<String> getTenantIdIn()
getTenantIdIn in interface TopicSubscriptionpublic boolean isIncludeExtensionProperties()
isIncludeExtensionProperties in interface TopicSubscriptionfalse,
which means that no extension properties will be available within
the external-task-client. true means that all defined
extension properties are fetched and provided.Copyright © 2022. All rights reserved.