Package com.github.sonus21.rqueue.core
Class ProcessingQueueMessageScheduler
java.lang.Object
com.github.sonus21.rqueue.core.MessageScheduler
com.github.sonus21.rqueue.core.ProcessingQueueMessageScheduler
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.DisposableBean,org.springframework.context.ApplicationListener<RqueueBootstrapEvent>
-
Field Summary
Fields inherited from class com.github.sonus21.rqueue.core.MessageScheduler
rqueueConfig, rqueueSchedulerConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetChannelName(String queueName) protected org.slf4j.Loggerprotected longgetNextScheduleTime(String queueName, Long value) protected Stringprotected intprotected StringgetZsetName(String queueName) protected voidprotected booleanisProcessingQueue(String queueName) Methods inherited from class com.github.sonus21.rqueue.core.MessageScheduler
destroy, getMinDelay, getQueueStartTime, getScheduledTask, onApplicationEvent, schedule
-
Constructor Details
-
ProcessingQueueMessageScheduler
public ProcessingQueueMessageScheduler()
-
-
Method Details
-
initialize
protected void initialize()- Overrides:
initializein classMessageScheduler
-
getLogger
protected org.slf4j.Logger getLogger()- Specified by:
getLoggerin classMessageScheduler
-
getChannelName
- Specified by:
getChannelNamein classMessageScheduler
-
getZsetName
- Specified by:
getZsetNamein classMessageScheduler
-
getThreadPoolSize
protected int getThreadPoolSize()- Specified by:
getThreadPoolSizein classMessageScheduler
-
isProcessingQueue
- Specified by:
isProcessingQueuein classMessageScheduler
-
getThreadNamePrefix
- Specified by:
getThreadNamePrefixin classMessageScheduler
-
getNextScheduleTime
- Specified by:
getNextScheduleTimein classMessageScheduler
-