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
redisScheduleTriggerHandler, rqueueConfig, rqueueSchedulerConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetChannelName(String queueName) protected org.slf4j.Loggerprotected longgetNextScheduleTime(String queueName, long currentTime, Long value) protected Stringprotected intprotected StringgetZsetName(String queueName) protected voidprotected booleanMethods inherited from class com.github.sonus21.rqueue.core.MessageScheduler
addTask, destroy, getPeriod, 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
protected boolean isProcessingQueue()- Specified by:
isProcessingQueuein classMessageScheduler
-
getThreadNamePrefix
- Specified by:
getThreadNamePrefixin classMessageScheduler
-
getNextScheduleTime
- Specified by:
getNextScheduleTimein classMessageScheduler
-