Class HivemqV5MessageProducer

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, org.springframework.integration.context.ExpressionCapable, org.springframework.integration.core.MessageProducer, org.springframework.integration.IntegrationPattern, org.springframework.integration.support.context.NamedComponent, org.springframework.integration.support.management.ManageableLifecycle, org.springframework.integration.support.management.ManageableSmartLifecycle, org.springframework.integration.support.management.TrackableComponent

    public class HivemqV5MessageProducer
    extends org.springframework.integration.endpoint.MessageProducerSupport
    Implements a HiveMq message producer.
    Author:
    Holger Eichelberger, SSE
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private HivemqV5Client client  
      private org.springframework.cloud.stream.provisioning.ConsumerDestination destination  
      • Fields inherited from class org.springframework.integration.endpoint.AbstractEndpoint

        lifecycleCondition, lifecycleLock
      • Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport

        EXPRESSION_PARSER, logger
      • Fields inherited from interface org.springframework.context.SmartLifecycle

        DEFAULT_PHASE
    • Constructor Summary

      Constructors 
      Constructor Description
      HivemqV5MessageProducer​(org.springframework.cloud.stream.provisioning.ConsumerDestination destination, HivemqV5Client client)
      Creates a message producer instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doStart()  
      protected void doStop()  
      • Methods inherited from class org.springframework.integration.endpoint.MessageProducerSupport

        afterSingletonsInstantiated, buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, onInit, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisher
      • Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint

        destroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stop
      • Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport

        afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.springframework.integration.support.context.NamedComponent

        getBeanName, getComponentName, getComponentType
    • Field Detail

      • destination

        private final org.springframework.cloud.stream.provisioning.ConsumerDestination destination
    • Constructor Detail

      • HivemqV5MessageProducer

        public HivemqV5MessageProducer​(org.springframework.cloud.stream.provisioning.ConsumerDestination destination,
                                       HivemqV5Client client)
        Creates a message producer instance.
        Parameters:
        destination - the consumer destination
        client - the client instance
    • Method Detail

      • doStart

        public void doStart()
        Overrides:
        doStart in class org.springframework.integration.endpoint.MessageProducerSupport
      • doStop

        protected void doStop()
        Overrides:
        doStop in class org.springframework.integration.endpoint.MessageProducerSupport