Class AbstractQueue
java.lang.Object
cn.sliew.carp.framework.queue.kekio.AbstractLifecycle
cn.sliew.carp.framework.queue.kekio.AbstractQueue
- All Implemented Interfaces:
Queue,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
- Direct Known Subclasses:
AbstractRedisQueue,InMemoryQueue
-
Nested Class Summary
Nested classes/interfaces inherited from interface cn.sliew.carp.framework.queue.kekio.Queue
Queue.DeadMessageCallback, Queue.QueueCallback -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TemporalAmountprotected final Booleanprotected final List<Queue.DeadMessageCallback>protected final EventPublisherFields inherited from interface cn.sliew.carp.framework.queue.kekio.Queue
MAX_RETRIESFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionAbstractQueue(String name, QueueExecutor queueExecutor, Collection<MessageHandler> handlers, List<Queue.DeadMessageCallback> deadMessageHandlers, EventPublisher publisher, io.micrometer.core.instrument.MeterRegistry meterRegistry, Boolean fillExecutorEachCycle, Duration requeueDelay, Duration requeueMaxJitter, Boolean canPollMany, TemporalAmount ackTimeout) -
Method Summary
Methods inherited from class cn.sliew.carp.framework.queue.kekio.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.queue.kekio.Queue
canPollMany, clear, getAckTimeout, getDeadMessageHandlers, poll, poll, push, push, retryMethods inherited from interface org.springframework.context.SmartLifecycle
getPhase, isAutoStartup, stop
-
Field Details
-
deadMessageHandlers
-
publisher
-
canPollMany
-
ackTimeout
-
-
Constructor Details
-
AbstractQueue
public AbstractQueue(String name, QueueExecutor queueExecutor, Collection<MessageHandler> handlers, List<Queue.DeadMessageCallback> deadMessageHandlers, EventPublisher publisher, io.micrometer.core.instrument.MeterRegistry meterRegistry, Boolean fillExecutorEachCycle, Duration requeueDelay, Duration requeueMaxJitter, Boolean canPollMany, TemporalAmount ackTimeout)
-
-
Method Details
-
doStart
- Specified by:
doStartin classAbstractLifecycle- Throws:
Exception
-
doStop
- Specified by:
doStopin classAbstractLifecycle- Throws:
Exception
-
getName
-