Class QueuePubsubChannelFactory

java.lang.Object
cn.sliew.carp.framework.pubsub.model.AbstractLifecycle
cn.sliew.carp.framework.pubsub.model.AbstractPubsubChannelFactory
cn.sliew.carp.framework.pubsub.queue.kekio.QueuePubsubChannelFactory
All Implemented Interfaces:
cn.sliew.carp.framework.pubsub.model.PubsubChannelFactory, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

public class QueuePubsubChannelFactory extends cn.sliew.carp.framework.pubsub.model.AbstractPubsubChannelFactory implements cn.sliew.carp.framework.pubsub.model.PubsubChannelFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Constructor Summary

    Constructors
    Constructor
    Description
    QueuePubsubChannelFactory(redis.clients.jedis.JedisPool jedisPool, com.fasterxml.jackson.databind.ObjectMapper objectMapper, cn.sliew.carp.framework.queue.kekio.QueueExecutor queueExecutor, List<cn.sliew.carp.framework.queue.kekio.Queue.DeadMessageCallback> deadMessageHandlers, io.micrometer.core.instrument.MeterRegistry meterRegistry)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected cn.sliew.carp.framework.pubsub.model.PubsubChannel
     
    protected void
     
    protected void
     
     

    Methods inherited from class cn.sliew.carp.framework.pubsub.model.AbstractPubsubChannelFactory

    get, getAll

    Methods inherited from class cn.sliew.carp.framework.pubsub.model.AbstractLifecycle

    isRunning, start, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.Lifecycle

    isRunning, start, stop

    Methods inherited from interface cn.sliew.carp.framework.pubsub.model.PubsubChannelFactory

    get, getAll

    Methods inherited from interface org.springframework.context.SmartLifecycle

    getPhase, isAutoStartup, stop
  • Field Details

  • Constructor Details

    • QueuePubsubChannelFactory

      public QueuePubsubChannelFactory(redis.clients.jedis.JedisPool jedisPool, com.fasterxml.jackson.databind.ObjectMapper objectMapper, cn.sliew.carp.framework.queue.kekio.QueueExecutor queueExecutor, List<cn.sliew.carp.framework.queue.kekio.Queue.DeadMessageCallback> deadMessageHandlers, io.micrometer.core.instrument.MeterRegistry meterRegistry)
  • Method Details

    • getSystem

      public String getSystem()
      Specified by:
      getSystem in interface cn.sliew.carp.framework.pubsub.model.PubsubChannelFactory
    • doStart

      protected void doStart() throws Exception
      Specified by:
      doStart in class cn.sliew.carp.framework.pubsub.model.AbstractLifecycle
      Throws:
      Exception
    • doStop

      protected void doStop() throws Exception
      Specified by:
      doStop in class cn.sliew.carp.framework.pubsub.model.AbstractLifecycle
      Throws:
      Exception
    • doCreate

      protected cn.sliew.carp.framework.pubsub.model.PubsubChannel doCreate(String name)
      Specified by:
      doCreate in class cn.sliew.carp.framework.pubsub.model.AbstractPubsubChannelFactory