Class AbstractRabbitMQConsumer

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractRabbitMQConsumer​(io.gridgo.connector.support.config.ConnectorContext context, com.rabbitmq.client.Connection connection, RabbitMQQueueConfig queueConfig, java.lang.String uniqueIdentifier)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.joo.promise4j.Deferred<io.gridgo.framework.support.Message,​java.lang.Exception> createDeferred()  
      protected java.lang.String generateName()  
      com.rabbitmq.client.Channel getChannel()  
      RabbitMQQueueConfig getQueueConfig()  
      protected java.lang.String getUniqueIdentifier()  
      protected void onStart()  
      protected void onStop()  
      • Methods inherited from class io.gridgo.connector.impl.AbstractConsumer

        clearSubscribers, createMessage, createMessage, createMessage, ensurePayloadId, ensurePayloadId, getContext, getSubscribers, parseMessage, parseMessage, parseMessage, parseMessage, publish, subscribe
      • Methods inherited from class io.gridgo.framework.AbstractComponentLifecycle

        getName, isStarted, start, stop, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface io.gridgo.framework.ComponentLifecycle

        getName, start, stop
      • Methods inherited from interface io.gridgo.connector.Consumer

        clearSubscribers, subscribe, subscribe
      • Methods inherited from interface io.gridgo.utils.helper.Loggable

        getLogger, getLogger
    • Constructor Detail

      • AbstractRabbitMQConsumer

        protected AbstractRabbitMQConsumer​(io.gridgo.connector.support.config.ConnectorContext context,
                                           @NonNull
                                           com.rabbitmq.client.Connection connection,
                                           @NonNull
                                           RabbitMQQueueConfig queueConfig,
                                           @NonNull
                                           java.lang.String uniqueIdentifier)
    • Method Detail

      • createDeferred

        protected org.joo.promise4j.Deferred<io.gridgo.framework.support.Message,​java.lang.Exception> createDeferred()
      • generateName

        protected java.lang.String generateName()
        Specified by:
        generateName in class io.gridgo.framework.AbstractComponentLifecycle
      • onStart

        protected void onStart()
        Specified by:
        onStart in class io.gridgo.framework.AbstractComponentLifecycle
      • onStop

        protected void onStop()
        Specified by:
        onStop in class io.gridgo.framework.AbstractComponentLifecycle
      • getUniqueIdentifier

        protected java.lang.String getUniqueIdentifier()