Class QueuePubsubChannel

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

public class QueuePubsubChannel extends cn.sliew.carp.framework.pubsub.model.AbstractPubsubChannel implements cn.sliew.carp.framework.pubsub.model.PubsubChannel
  • Field Summary

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Constructor Summary

    Constructors
    Constructor
    Description
    QueuePubsubChannel(String name, cn.sliew.carp.framework.queue.kekio.Queue queue)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
     
    void
    push(Object message, Duration delay)
     
    void
    register(cn.sliew.carp.framework.pubsub.model.PubsubSubscriber subscriber)
     
    void
    remove(cn.sliew.carp.framework.pubsub.model.PubsubSubscriber subscriber)
     

    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.PubsubChannel

    push

    Methods inherited from interface org.springframework.context.SmartLifecycle

    getPhase, isAutoStartup, stop
  • Constructor Details

    • QueuePubsubChannel

      public QueuePubsubChannel(String name, cn.sliew.carp.framework.queue.kekio.Queue queue)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface cn.sliew.carp.framework.pubsub.model.PubsubChannel
    • register

      public void register(cn.sliew.carp.framework.pubsub.model.PubsubSubscriber subscriber)
      Specified by:
      register in interface cn.sliew.carp.framework.pubsub.model.PubsubChannel
    • remove

      public void remove(cn.sliew.carp.framework.pubsub.model.PubsubSubscriber subscriber)
      Specified by:
      remove in interface cn.sliew.carp.framework.pubsub.model.PubsubChannel
    • push

      public void push(Object message, Duration delay)
      Specified by:
      push in interface cn.sliew.carp.framework.pubsub.model.PubsubChannel
    • 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