Class SpringTopicSubscriptionImpl
- java.lang.Object
- 
- org.camunda.bpm.client.spring.impl.subscription.SpringTopicSubscriptionImpl
 
- 
- All Implemented Interfaces:
- SpringTopicSubscription,- TopicSubscription,- org.springframework.beans.factory.InitializingBean
 - Direct Known Subclasses:
- PropertiesAwareSpringTopicSubscription
 
 public class SpringTopicSubscriptionImpl extends java.lang.Object implements SpringTopicSubscription, org.springframework.beans.factory.InitializingBean 
- 
- 
Field SummaryFields Modifier and Type Field Description protected org.springframework.context.ApplicationEventPublisherapplicationEventPublisherprotected ExternalTaskClientclientprotected ExternalTaskHandlerexternalTaskHandlerprotected static SubscriptionLoggerUtilLOGprotected SubscriptionConfigurationsubscriptionConfigurationprotected TopicSubscriptiontopicSubscriptionprotected TopicSubscriptionBuildertopicSubscriptionBuilder
 - 
Constructor SummaryConstructors Constructor Description SpringTopicSubscriptionImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voidclose()Delegates toTopicSubscription.close().voidcloseInternally()java.lang.StringgetBusinessKey()ExternalTaskHandlergetExternalTaskHandler()java.lang.LonggetLockDuration()java.lang.StringgetProcessDefinitionId()java.util.List<java.lang.String>getProcessDefinitionIdIn()java.lang.StringgetProcessDefinitionKey()java.util.List<java.lang.String>getProcessDefinitionKeyIn()java.lang.StringgetProcessDefinitionVersionTag()java.util.Map<java.lang.String,java.lang.Object>getProcessVariables()SubscriptionConfigurationgetSubscriptionConfiguration()java.util.List<java.lang.String>getTenantIdIn()java.lang.StringgetTopicName()java.util.List<java.lang.String>getVariableNames()voidinitialize()booleanisAutoOpen()protected java.util.function.Predicate<org.springframework.context.ApplicationEvent>isEventThatCanStartSubscription()booleanisIncludeExtensionProperties()booleanisLocalVariables()booleanisOpen()booleanisWithoutTenantId()voidopen()Releases the topic subscription for asynchronous execution whenSpringTopicSubscription.isAutoOpen()isfalseprotected voidpublishInitializedEvent(java.lang.String topicName)voidsetExternalTaskHandler(ExternalTaskHandler externalTaskHandler)voidsetSubscriptionConfiguration(SubscriptionConfiguration subscriptionConfiguration)voidstart(org.springframework.context.ApplicationEvent event)protected java.lang.String[]toArray(java.util.List<java.lang.String> list)
 
- 
- 
- 
Field Detail- 
LOGprotected static final SubscriptionLoggerUtil LOG 
 - 
subscriptionConfigurationprotected SubscriptionConfiguration subscriptionConfiguration 
 - 
externalTaskHandlerprotected ExternalTaskHandler externalTaskHandler 
 - 
topicSubscriptionBuilderprotected TopicSubscriptionBuilder topicSubscriptionBuilder 
 - 
topicSubscriptionprotected TopicSubscription topicSubscription 
 - 
client@Autowired protected ExternalTaskClient client 
 - 
applicationEventPublisher@Autowired protected org.springframework.context.ApplicationEventPublisher applicationEventPublisher 
 
- 
 - 
Method Detail- 
isEventThatCanStartSubscriptionprotected java.util.function.Predicate<org.springframework.context.ApplicationEvent> isEventThatCanStartSubscription() 
 - 
start@EventListener public void start(org.springframework.context.ApplicationEvent event) 
 - 
initializepublic void initialize() 
 - 
publishInitializedEventprotected void publishInitializedEvent(java.lang.String topicName) 
 - 
openpublic void open() Description copied from interface:SpringTopicSubscriptionReleases the topic subscription for asynchronous execution whenSpringTopicSubscription.isAutoOpen()isfalse- Specified by:
- openin interface- SpringTopicSubscription
 
 - 
isOpenpublic boolean isOpen() - Specified by:
- isOpenin interface- SpringTopicSubscription
- Returns:
- truewhen the topic subscription is already released for execution
- falsewhen the topic subscription is not already released for execution; call- SpringTopicSubscription.open()to release the topic for execution
 
 
 - 
closeInternallypublic void closeInternally() 
 - 
closepublic void close() Description copied from interface:SpringTopicSubscriptionDelegates toTopicSubscription.close().- Specified by:
- closein interface- SpringTopicSubscription
- Specified by:
- closein interface- TopicSubscription
- See Also:
- TopicSubscription.close()
 
 - 
isAutoOpenpublic boolean isAutoOpen() - Specified by:
- isAutoOpenin interface- SpringTopicSubscription
- Returns:
- truewhen the topic subscription is automatically released for execution
- falsewhen you need to call- SpringTopicSubscription.open()to release the topic for execution
 
 
 - 
setExternalTaskHandlerpublic void setExternalTaskHandler(ExternalTaskHandler externalTaskHandler) 
 - 
getSubscriptionConfigurationpublic SubscriptionConfiguration getSubscriptionConfiguration() 
 - 
setSubscriptionConfigurationpublic void setSubscriptionConfiguration(SubscriptionConfiguration subscriptionConfiguration) 
 - 
getTopicNamepublic java.lang.String getTopicName() - Specified by:
- getTopicNamein interface- TopicSubscription
- Returns:
- the topic name of the subscription
 
 - 
getLockDurationpublic java.lang.Long getLockDuration() - Specified by:
- getLockDurationin interface- TopicSubscription
- Returns:
- the duration of the lock applied to the topic
-  if null, the client or the default lock duration is applied
 
 
 - 
getExternalTaskHandlerpublic ExternalTaskHandler getExternalTaskHandler() - Specified by:
- getExternalTaskHandlerin interface- TopicSubscription
- Returns:
- the external task handler of the topic
 
 - 
getVariableNamespublic java.util.List<java.lang.String> getVariableNames() - Specified by:
- getVariableNamesin interface- TopicSubscription
- Returns:
- a list of variable names which are supposed to be retrieved
 
 - 
isLocalVariablespublic boolean isLocalVariables() - Specified by:
- isLocalVariablesin interface- TopicSubscription
- Returns:
- whether or not variables from greater scopes than the external task
         are fetched. falsemeans all variables visible in the scope of the external task will be fetched,truemeans only local variables (to the scope of the external task) will be fetched.
 
 - 
getBusinessKeypublic java.lang.String getBusinessKey() - Specified by:
- getBusinessKeyin interface- TopicSubscription
- Returns:
- the business key associated with the external tasks which are supposed to be fetched and locked
 
 - 
getProcessDefinitionIdpublic java.lang.String getProcessDefinitionId() - Specified by:
- getProcessDefinitionIdin interface- TopicSubscription
- Returns:
- the process definition id associated with the external tasks which are supposed to be fetched and locked
 
 - 
getProcessDefinitionIdInpublic java.util.List<java.lang.String> getProcessDefinitionIdIn() - Specified by:
- getProcessDefinitionIdInin interface- TopicSubscription
- Returns:
- the process definition ids associated with the external tasks which are supposed to be fetched and locked
 
 - 
getProcessDefinitionKeypublic java.lang.String getProcessDefinitionKey() - Specified by:
- getProcessDefinitionKeyin interface- TopicSubscription
- Returns:
- the process definition key associated with the external tasks which are supposed to be fetched and locked
 
 - 
getProcessDefinitionKeyInpublic java.util.List<java.lang.String> getProcessDefinitionKeyIn() - Specified by:
- getProcessDefinitionKeyInin interface- TopicSubscription
- Returns:
- the process definition keys associated with the external tasks which are supposed to be fetched and locked
 
 - 
getProcessDefinitionVersionTagpublic java.lang.String getProcessDefinitionVersionTag() - Specified by:
- getProcessDefinitionVersionTagin interface- TopicSubscription
- Returns:
- the process definition version tag associated with the external task which are supposed to be fetched and locked
 
 - 
getProcessVariablespublic java.util.Map<java.lang.String,java.lang.Object> getProcessVariables() - Specified by:
- getProcessVariablesin interface- TopicSubscription
- Returns:
- the process variables associated with the external task which are supposed to be fetched and locked
 
 - 
isWithoutTenantIdpublic boolean isWithoutTenantId() - Specified by:
- isWithoutTenantIdin interface- TopicSubscription
- Returns:
- the tenant id presence for the external tasks which are supposed to be fetched and locked
 
 - 
getTenantIdInpublic java.util.List<java.lang.String> getTenantIdIn() - Specified by:
- getTenantIdInin interface- TopicSubscription
- Returns:
- the tenant ids associated with the external tasks which are supposed to be fetched and locked
 
 - 
isIncludeExtensionPropertiespublic boolean isIncludeExtensionProperties() - Specified by:
- isIncludeExtensionPropertiesin interface- TopicSubscription
- Returns:
- whether or not custom extension properties defined in the external
         task activity are included. The default is false, which means that no extension properties will be available within the external-task-client.truemeans that all defined extension properties are fetched and provided.
 
 - 
toArrayprotected java.lang.String[] toArray(java.util.List<java.lang.String> list) 
 - 
afterPropertiesSetpublic void afterPropertiesSet() throws java.lang.Exception- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
- Throws:
- java.lang.Exception
 
 
- 
 
-