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
ConstructorsConstructorDescriptionQueuePubsubChannel(String name, cn.sliew.carp.framework.queue.kekio.Queue queue) -
Method Summary
Methods inherited from class cn.sliew.carp.framework.pubsub.model.AbstractLifecycle
isRunning, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.Lifecycle
isRunning, start, stopMethods inherited from interface cn.sliew.carp.framework.pubsub.model.PubsubChannel
pushMethods inherited from interface org.springframework.context.SmartLifecycle
getPhase, isAutoStartup, stop
-
Constructor Details
-
QueuePubsubChannel
-
-
Method Details
-
getName
- Specified by:
getNamein interfacecn.sliew.carp.framework.pubsub.model.PubsubChannel
-
register
public void register(cn.sliew.carp.framework.pubsub.model.PubsubSubscriber subscriber) - Specified by:
registerin interfacecn.sliew.carp.framework.pubsub.model.PubsubChannel
-
remove
public void remove(cn.sliew.carp.framework.pubsub.model.PubsubSubscriber subscriber) - Specified by:
removein interfacecn.sliew.carp.framework.pubsub.model.PubsubChannel
-
push
- Specified by:
pushin interfacecn.sliew.carp.framework.pubsub.model.PubsubChannel
-
doStart
- Specified by:
doStartin classcn.sliew.carp.framework.pubsub.model.AbstractLifecycle- Throws:
Exception
-
doStop
- Specified by:
doStopin classcn.sliew.carp.framework.pubsub.model.AbstractLifecycle- Throws:
Exception
-