Class ClientFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.FactoryBean<org.camunda.bpm.client.ExternalTaskClient>, org.springframework.beans.factory.InitializingBean

    public class ClientFactory
    extends Object
    implements org.springframework.beans.factory.FactoryBean<org.camunda.bpm.client.ExternalTaskClient>, org.springframework.beans.factory.InitializingBean
    • Field Detail

      • backoffStrategy

        protected org.camunda.bpm.client.backoff.BackoffStrategy backoffStrategy
      • requestInterceptors

        protected List<org.camunda.bpm.client.interceptor.ClientRequestInterceptor> requestInterceptors
      • client

        protected org.camunda.bpm.client.ExternalTaskClient client
      • propertyResolver

        protected org.springframework.core.env.PropertyResolver propertyResolver
    • Constructor Detail

      • ClientFactory

        public ClientFactory()
    • Method Detail

      • getObject

        public org.camunda.bpm.client.ExternalTaskClient getObject()
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<org.camunda.bpm.client.ExternalTaskClient>
      • addClientRequestInterceptors

        protected void addClientRequestInterceptors​(org.camunda.bpm.client.ExternalTaskClientBuilder taskClientBuilder)
      • setRequestInterceptors

        @Autowired(required=false)
        public void setRequestInterceptors​(List<org.camunda.bpm.client.interceptor.ClientRequestInterceptor> requestInterceptors)
      • setClientBackoffStrategy

        @Autowired(required=false)
        public void setClientBackoffStrategy​(org.camunda.bpm.client.backoff.BackoffStrategy backoffStrategy)
      • getObjectType

        public Class<org.camunda.bpm.client.ExternalTaskClient> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<org.camunda.bpm.client.ExternalTaskClient>
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean<org.camunda.bpm.client.ExternalTaskClient>
      • afterPropertiesSet

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

        public void setClientConfiguration​(ClientConfiguration clientConfiguration)
      • getRequestInterceptors

        public List<org.camunda.bpm.client.interceptor.ClientRequestInterceptor> getRequestInterceptors()
      • close

        protected void close()
      • setPropertyConfigurer

        @Autowired(required=false)
        protected void setPropertyConfigurer​(org.springframework.context.support.PropertySourcesPlaceholderConfigurer configurer)