Package com.github.sonus21.rqueue.core
Interface ReactiveRqueueMessageEnqueuer
- All Known Implementing Classes:
ReactiveRqueueMessageEnqueuerImpl
public interface ReactiveRqueueMessageEnqueuer
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<String>Enqueue a message on given queue, consume as soon as possible.reactor.core.publisher.Mono<Boolean>Enqueue a message on given queue, consume as soon as possible.default reactor.core.publisher.Mono<String>Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<String>Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<String>Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<Boolean>Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<Boolean>Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<Boolean>Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<String>enqueueAtWithPriority(String queueName, String priority, Object message, long startTimeInMilliSecond) Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<String>enqueueAtWithPriority(String queueName, String priority, Object message, Instant startTime) Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<String>enqueueAtWithPriority(String queueName, String priority, Object message, Date time) Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<Boolean>enqueueAtWithPriority(String queueName, String priority, String messageId, Object message, long startTimeInMilliSecond) Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<Boolean>enqueueAtWithPriority(String queueName, String priority, String messageId, Object message, Instant instant) Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<Boolean>enqueueAtWithPriority(String queueName, String priority, String messageId, Object message, Date time) Schedule a message on the given queue at the provided time.reactor.core.publisher.Mono<String>Schedule a message on the given queue with the provided delay.default reactor.core.publisher.Mono<String>Schedule a message on the given queue with the provided delay.default reactor.core.publisher.Mono<String>Schedule a message on the given queue with the provided delay.reactor.core.publisher.Mono<Boolean>Schedule a message on the given queue with the provided delay.default reactor.core.publisher.Mono<Boolean>Schedule a message on the given queue with the provided delay.default reactor.core.publisher.Mono<Boolean>Schedule a message on the given queue with the provided delay.default reactor.core.publisher.Mono<String>enqueueInWithPriority(String queueName, String priority, Object message, long delayInMilliSecs) Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<String>enqueueInWithPriority(String queueName, String priority, Object message, long delay, TimeUnit unit) Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<String>enqueueInWithPriority(String queueName, String priority, Object message, Duration delay) Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<Boolean>enqueueInWithPriority(String queueName, String priority, String messageId, Object message, long delayInMilliSecs) Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<Boolean>enqueueInWithPriority(String queueName, String priority, String messageId, Object message, long delay, TimeUnit unit) Schedule a message on the given queue at the provided time.default reactor.core.publisher.Mono<Boolean>enqueueInWithPriority(String queueName, String priority, String messageId, Object message, Duration delay) Schedule a message on the given queue at the provided time.reactor.core.publisher.Mono<String>enqueueInWithRetry(String queueName, Object message, int retryCount, long delayInMilliSecs) Enqueue a task that would be scheduled to run in the specified milliseconds.reactor.core.publisher.Mono<Boolean>enqueueInWithRetry(String queueName, String messageId, Object message, int retryCount, long delayInMilliSecs) Enqueue a task that would be scheduled to run in the specified milliseconds.reactor.core.publisher.Mono<String>enqueuePeriodic(String queueName, Object message, long periodInMilliSeconds) Enqueue a message on given queue that will be running after a given period.default reactor.core.publisher.Mono<String>enqueuePeriodic(String queueName, Object message, long period, TimeUnit unit) Enqueue a message on given queue that will be running after a given period.default reactor.core.publisher.Mono<String>enqueuePeriodic(String queueName, Object message, Duration period) Enqueue a message on given queue that will be running after a given period.reactor.core.publisher.Mono<Boolean>enqueuePeriodic(String queueName, String messageId, Object message, long periodInMilliSeconds) Enqueue a message on given queue that will be running after a given period.default reactor.core.publisher.Mono<Boolean>enqueuePeriodic(String queueName, String messageId, Object message, long period, TimeUnit unit) Enqueue a message on given queue that will be running after a given period.default reactor.core.publisher.Mono<Boolean>enqueuePeriodic(String queueName, String messageId, Object message, Duration period) Enqueue a message on given queue that will be running after a given period.reactor.core.publisher.Mono<Boolean>enqueueUnique(String queueName, String messageId, Object message) Enqueue unique message on a given queue without, consume as soon as possible.default reactor.core.publisher.Mono<Boolean>enqueueUniqueAt(String queueName, String messageId, Object message, long timeInMilliSeconds) Schedule unique messages on the given queue at the provided time.default reactor.core.publisher.Mono<Boolean>enqueueUniqueAtWithPriority(String queueName, String priority, String messageId, Object message, long timeInMilliSeconds) Schedule unique messages on the given queue at the provided time.reactor.core.publisher.Mono<Boolean>enqueueUniqueIn(String queueName, String messageId, Object message, long delayInMillisecond) Enqueue a message on given queue with delay, consume as soon as the delay is expired.default reactor.core.publisher.Mono<Boolean>enqueueUniqueInWithPriority(String queueName, String priority, String messageId, Object message, long delay, TimeUnit unit) Schedule unique message on the given queue at the provided time.default reactor.core.publisher.Mono<Boolean>enqueueUniqueWithPriority(String queueName, String priority, String messageId, Object message) Enqueue unique message on given queue, that will be consumed as soon as possible.reactor.core.publisher.Mono<String>enqueueWithPriority(String queueName, String priority, Object message) Enqueue a message on given queue, that will be consumed as soon as possible.reactor.core.publisher.Mono<Boolean>enqueueWithPriority(String queueName, String priority, String messageId, Object message) Enqueue a message on given queue, that will be consumed as soon as possible.reactor.core.publisher.Mono<String>enqueueWithRetry(String queueName, Object message, int retryCount) Enqueue a message on the given queue with the given retry count.reactor.core.publisher.Mono<Boolean>enqueueWithRetry(String queueName, String messageId, Object message, int retryCount) Enqueue a message on the given queue with the given retry count.
-
Method Details
-
enqueue
Enqueue a message on given queue, consume as soon as possible.- Parameters:
queueName- on which queue message has to be sendmessage- message object it could be any arbitrary object.- Returns:
- message id on successful enqueue otherwise null.
-
enqueue
Enqueue a message on given queue, consume as soon as possible.- Parameters:
queueName- on which queue message has to be sendmessageId- message idmessage- message object it could be any arbitrary object.- Returns:
- message was enqueue successfully or failed.
-
enqueueUnique
reactor.core.publisher.Mono<Boolean> enqueueUnique(String queueName, String messageId, Object message) Enqueue unique message on a given queue without, consume as soon as possible.- Parameters:
queueName- on which queue message has to be sendmessageId- the message id for uniquenessmessage- message object it could be any arbitrary object.- Returns:
- message id on successful enqueue otherwise null.
-
enqueueWithRetry
reactor.core.publisher.Mono<String> enqueueWithRetry(String queueName, Object message, int retryCount) Enqueue a message on the given queue with the given retry count. This message would not be consumed more than the specified time due to failure in underlying systems.- Parameters:
queueName- on which queue message has to be sendmessage- message object it could be any arbitrary object.retryCount- how many times a message would be retried, before it can be discarded or send to dead letter queue configured usingRqueueListener.numRetries()- Returns:
- message id on successful enqueue otherwise null.
-
enqueueWithRetry
reactor.core.publisher.Mono<Boolean> enqueueWithRetry(String queueName, String messageId, Object message, int retryCount) Enqueue a message on the given queue with the given retry count. This message would not be consumed more than the specified time due to failure in underlying systems.- Parameters:
queueName- on which queue message has to be sendmessageId- message id for this message.message- message object it could be any arbitrary object.retryCount- how many times a message would be retried, before it can be discarded or send to dead letter queue configured usingRqueueListener.numRetries()- Returns:
- message was enqueue successfully or failed.
-
enqueueWithPriority
reactor.core.publisher.Mono<String> enqueueWithPriority(String queueName, String priority, Object message) Enqueue a message on given queue, that will be consumed as soon as possible.- Parameters:
queueName- on which queue message has to be sendpriority- the priority for this message, like high, low, medium etcmessage- message object it could be any arbitrary object.- Returns:
- message id on successful enqueue otherwise null.
-
enqueueWithPriority
reactor.core.publisher.Mono<Boolean> enqueueWithPriority(String queueName, String priority, String messageId, Object message) Enqueue a message on given queue, that will be consumed as soon as possible.- Parameters:
queueName- on which queue message has to be sendpriority- the priority for this message, like high, low, medium etcmessageId- the message id for this messagemessage- message object it could be any arbitrary object.- Returns:
- message was enqueued successfully or not.
-
enqueueUniqueWithPriority
default reactor.core.publisher.Mono<Boolean> enqueueUniqueWithPriority(String queueName, String priority, String messageId, Object message) Enqueue unique message on given queue, that will be consumed as soon as possible.- Parameters:
queueName- on which queue message has to be sendpriority- the priority for this message, like high, low, medium etcmessageId- the message id for this messagemessage- message object it could be any arbitrary object.- Returns:
- message was enqueue successfully or failed.
-
enqueueIn
reactor.core.publisher.Mono<String> enqueueIn(String queueName, Object message, long delayInMilliSecs) Schedule a message on the given queue with the provided delay. It will be available to consume as soon as the delay elapse, for example process in 10 seconds- Parameters:
queueName- on which queue message has to be sendmessage- message object it could be any arbitrary object.delayInMilliSecs- delay in milliseconds- Returns:
- message id on successful enqueue otherwise null.
-
enqueueIn
reactor.core.publisher.Mono<Boolean> enqueueIn(String queueName, String messageId, Object message, long delayInMilliSecs) Schedule a message on the given queue with the provided delay. It will be available to consume as soon as the delay elapse.- Parameters:
queueName- on which queue message has to be sendmessageId- the message id, using which this message will be identifiedmessage- message object it could be any arbitrary object.delayInMilliSecs- delay in milliseconds- Returns:
- message was enqueue successfully or failed.
-
enqueueIn
default reactor.core.publisher.Mono<String> enqueueIn(String queueName, Object message, Duration delay) Schedule a message on the given queue with the provided delay. It will be available to consume as soon as the delay elapse.- Parameters:
queueName- on which queue message has to be sendmessage- message object it could be any arbitrary object.delay- time to wait before it can be executed.- Returns:
- message id on successful enqueue otherwise null.
-
enqueueIn
default reactor.core.publisher.Mono<Boolean> enqueueIn(String queueName, String messageId, Object message, Duration delay) Schedule a message on the given queue with the provided delay. It will be available to consume as soon as the delay elapse.- Parameters:
queueName- on which queue message has to be sendmessageId- the message id, using which this message will be identifiedmessage- message object it could be any arbitrary object.delay- time to wait before it can be executed.- Returns:
- success or failure.
-
enqueueIn
default reactor.core.publisher.Mono<String> enqueueIn(String queueName, Object message, long delay, TimeUnit unit) Schedule a message on the given queue with the provided delay. It will be available to consume as soon as the specified delay elapse.- Parameters:
queueName- on which queue message has to be sendmessage- message object it could be any arbitrary object.delay- time to wait before it can be executed.unit- unit of the delay- Returns:
- message id on successful enqueue otherwise null.
-
enqueueIn
default reactor.core.publisher.Mono<Boolean> enqueueIn(String queueName, String messageId, Object message, long delay, TimeUnit unit) Schedule a message on the given queue with the provided delay. It will be available to consume as soon as the specified delay elapse.- Parameters:
queueName- on which queue message has to be sendmessageId- message id using which this message can be identifiedmessage- message object it could be any arbitrary object.delay- time to wait before it can be executed.unit- unit of the delay- Returns:
- success or failure.
-
enqueueUniqueIn
reactor.core.publisher.Mono<Boolean> enqueueUniqueIn(String queueName, String messageId, Object message, long delayInMillisecond) Enqueue a message on given queue with delay, consume as soon as the delay is expired.- Parameters:
queueName- on which queue message has to be sentmessageId- the message id for uniquenessmessage- message object it could be any arbitrary object.delayInMillisecond- total execution delay- Returns:
- message id on successful enqueue otherwise null.
-
enqueueInWithRetry
reactor.core.publisher.Mono<String> enqueueInWithRetry(String queueName, Object message, int retryCount, long delayInMilliSecs) Enqueue a task that would be scheduled to run in the specified milliseconds.- Parameters:
queueName- on which queue message has to be sendmessage- message object it could be any arbitrary object.retryCount- how many times a message would be retried, before it can be discarded or sent to dead letter queue configured usingRqueueListener.numRetries()()}delayInMilliSecs- delay in milliseconds, this message would be only visible to the listener when number of millisecond has elapsed.- Returns:
- message id on successful enqueue otherwise null
-
enqueueInWithRetry
reactor.core.publisher.Mono<Boolean> enqueueInWithRetry(String queueName, String messageId, Object message, int retryCount, long delayInMilliSecs) Enqueue a task that would be scheduled to run in the specified milliseconds.- Parameters:
queueName- on which queue message has to be sentmessageId- the message identifiermessage- message object it could be any arbitrary object.retryCount- how many times a message would be retried, before it can be discarded or sent to dead letter queue configured usingRqueueListener.numRetries()()}delayInMilliSecs- delay in milliseconds, this message would be only visible to the listener when number of millisecond has elapsed.- Returns:
- message was enqueue successfully or failed.
-
enqueueInWithPriority
default reactor.core.publisher.Mono<String> enqueueInWithPriority(String queueName, String priority, Object message, long delayInMilliSecs) Schedule a message on the given queue at the provided time. It will be executed as soon as the given delay is elapse.- Parameters:
queueName- on which queue message has to be sendpriority- the name of the priority levelmessage- message object it could be any arbitrary object.delayInMilliSecs- delay in milliseconds- Returns:
- message id on successful enqueue otherwise null.
-
enqueueInWithPriority
default reactor.core.publisher.Mono<Boolean> enqueueInWithPriority(String queueName, String priority, String messageId, Object message, long delayInMilliSecs) Schedule a message on the given queue at the provided time. It will be executed as soon as the given delay is elapse.- Parameters:
queueName- on which queue message has to be sendpriority- the name of the priority levelmessageId- the message idmessage- message object it could be any arbitrary object.delayInMilliSecs- delay in milliseconds- Returns:
- message was enqueue successfully or failed.
-
enqueueInWithPriority
default reactor.core.publisher.Mono<String> enqueueInWithPriority(String queueName, String priority, Object message, Duration delay) Schedule a message on the given queue at the provided time. It will be executed as soon as the given delay is elapse.- Parameters:
queueName- on which queue message has to be sendpriority- the name of the priority levelmessage- message object it could be any arbitrary object.delay- time to wait before it can be consumed.- Returns:
- message id on successful enqueue otherwise null.
-
enqueueInWithPriority
default reactor.core.publisher.Mono<Boolean> enqueueInWithPriority(String queueName, String priority, String messageId, Object message, Duration delay) Schedule a message on the given queue at the provided time. It will be executed as soon as the given delay is elapse.- Parameters:
queueName- on which queue message has to be sendpriority- the name of the priority levelmessageId- the message idmessage- message object it could be any arbitrary object.delay- time to wait before it can be consumed.- Returns:
- message was enqueue successfully or failed.
-
enqueueInWithPriority
default reactor.core.publisher.Mono<String> enqueueInWithPriority(String queueName, String priority, Object message, long delay, TimeUnit unit) Schedule a message on the given queue at the provided time. It will be executed as soon as the given delay is elapse.- Parameters:
queueName- on which queue message has to be sendpriority- the name of the priority levelmessage- message object it could be any arbitrary object.delay- time to wait before it can be consumed.unit- unit of the delay- Returns:
- message id on a successful enqueue otherwise null.
-
enqueueInWithPriority
default reactor.core.publisher.Mono<Boolean> enqueueInWithPriority(String queueName, String priority, String messageId, Object message, long delay, TimeUnit unit) Schedule a message on the given queue at the provided time. It will be executed as soon as the given delay is elapse.- Parameters:
queueName- on which queue message has to be sendpriority- the name of the priority levelmessageId- the message idmessage- message object it could be any arbitrary object.delay- time to wait before it can be consumed.unit- unit of the delay- Returns:
- message was enqueue successfully or failed.
-
enqueueUniqueInWithPriority
default reactor.core.publisher.Mono<Boolean> enqueueUniqueInWithPriority(String queueName, String priority, String messageId, Object message, long delay, TimeUnit unit) Schedule unique message on the given queue at the provided time. It will be executed as soon as the given delay is elapse.- Parameters:
queueName- on which queue message has to be sendpriority- the name of the priority levelmessageId- the message idmessage- message object it could be any arbitrary object.delay- time to wait before it can be consumed.unit- unit of the delay- Returns:
- message was enqueue successfully or failed.
-
enqueueAt
default reactor.core.publisher.Mono<String> enqueueAt(String queueName, Object message, long startTimeInMilliSeconds) Schedule a message on the given queue at the provided time. It will be available to consume as soon as the given time is reached.- Parameters:
queueName- on which queue message has to be sendmessage- message object it could be any arbitrary object.startTimeInMilliSeconds- time at which this message has to be consumed.- Returns:
- message id on successful enqueue otherwise null.
-
enqueueAt
default reactor.core.publisher.Mono<Boolean> enqueueAt(String queueName, String messageId, Object message, long startTimeInMilliSeconds) Schedule a message on the given queue at the provided time. It will be available to consume as soon as the given time is reached.- Parameters:
queueName- on which queue message has to be sendmessageId- message idmessage- message object it could be any arbitrary object.startTimeInMilliSeconds- time at which this message has to be consumed.- Returns:
- message was enqueued successfully or failed.
-
enqueueAt
default reactor.core.publisher.Mono<String> enqueueAt(String queueName, Object message, Instant starTime) Schedule a message on the given queue at the provided time. It will be available to consume as soon as the given time is reached.- Parameters:
queueName- on which queue message has to be sendmessage- message object it could be any arbitrary object.starTime- time at which this message has to be consumed.- Returns:
- message id on successful enqueue otherwise null.
-
enqueueAt
default reactor.core.publisher.Mono<Boolean> enqueueAt(String queueName, String messageId, Object message, Instant starTime) Schedule a message on the given queue at the provided time. It will be available to consume as soon as the given time is reached.- Parameters:
queueName- on which queue message has to be sendmessageId- the message idmessage- message object it could be any arbitrary object.starTime- time at which this message has to be consumed.- Returns:
- message was enqueued successfully or failed.
-
enqueueAt
default reactor.core.publisher.Mono<String> enqueueAt(String queueName, Object message, Date starTime) Schedule a message on the given queue at the provided time. It will be available to consume as soon as the given time is reached.- Parameters:
queueName- on which queue message has to be sendmessage- message object it could be any arbitrary object.starTime- time at which this message has to be consumed.- Returns:
- message id on successful enqueue otherwise null.
-
enqueueAt
default reactor.core.publisher.Mono<Boolean> enqueueAt(String queueName, String messageId, Object message, Date starTime) Schedule a message on the given queue at the provided time. It will be available to consume as soon as the given time is reached.- Parameters:
queueName- on which queue message has to be sendmessageId- the message idmessage- message object it could be any arbitrary object.starTime- time at which this message has to be consumed.- Returns:
- message was enqueued successfully or failed.
-
enqueueUniqueAt
default reactor.core.publisher.Mono<Boolean> enqueueUniqueAt(String queueName, String messageId, Object message, long timeInMilliSeconds) Schedule unique messages on the given queue at the provided time. It will be available to consume as soon as the given time is reached.- Parameters:
queueName- on which queue message has to be sendmessage- message object it could be any arbitrary object.messageId- a unique identifier for this messagetimeInMilliSeconds- time at which this message has to be consumed.- Returns:
- message was enqueue successfully or failed.
-
enqueueAtWithPriority
default reactor.core.publisher.Mono<String> enqueueAtWithPriority(String queueName, String priority, Object message, long startTimeInMilliSecond) Schedule a message on the given queue at the provided time. It will be executed as soon as the given time is reached, time must be in the future.- Parameters:
queueName- on which queue message has to be sendpriority- the name of the priority levelmessage- message object it could be any arbitrary object.startTimeInMilliSecond- time at which the message would be consumed.- Returns:
- message id on successful enqueue otherwise null.
-
enqueueAtWithPriority
default reactor.core.publisher.Mono<Boolean> enqueueAtWithPriority(String queueName, String priority, String messageId, Object message, long startTimeInMilliSecond) Schedule a message on the given queue at the provided time. It will be executed as soon as the given time is reached, time must be in the future.- Parameters:
queueName- on which queue message has to be sendpriority- the name of the priority levelmessageId- the message idmessage- message object it could be any arbitrary object.startTimeInMilliSecond- time at which the message would be consumed.- Returns:
- message was enqueue successfully or failed.
-
enqueueAtWithPriority
default reactor.core.publisher.Mono<String> enqueueAtWithPriority(String queueName, String priority, Object message, Instant startTime) Schedule a message on the given queue at the provided time. It will be executed as soon as the given time is reached, time must be in the future.- Parameters:
queueName- on which queue message has to be sendpriority- the name of the priority levelmessage- message object it could be any arbitrary object.startTime- time at which message is supposed to consume- Returns:
- message id on successful enqueue otherwise null
-
enqueueAtWithPriority
default reactor.core.publisher.Mono<Boolean> enqueueAtWithPriority(String queueName, String priority, String messageId, Object message, Instant instant) Schedule a message on the given queue at the provided time. It will be executed as soon as the given time is reached, time must be in the future.- Parameters:
queueName- on which queue message has to be sendpriority- the name of the priority levelmessage- message object it could be any arbitrary object.messageId- the message idinstant- time at which message is supposed to consume- Returns:
- message was enqueue successfully or failed.
-
enqueueAtWithPriority
default reactor.core.publisher.Mono<String> enqueueAtWithPriority(String queueName, String priority, Object message, Date time) Schedule a message on the given queue at the provided time. It will be executed as soon as the given time is reached, time must be in the future.- Parameters:
queueName- on which queue message has to be sendpriority- the name of the priority levelmessage- message object it could be any arbitrary object.time- time at which message would be consumed.- Returns:
- a message id on successful enqueue otherwise null
-
enqueueAtWithPriority
default reactor.core.publisher.Mono<Boolean> enqueueAtWithPriority(String queueName, String priority, String messageId, Object message, Date time) Schedule a message on the given queue at the provided time. It will be executed as soon as the given time is reached, time must be in the future.- Parameters:
queueName- on which queue message has to be sendpriority- the name of the priority levelmessageId- the message idmessage- message object it could be any arbitrary object.time- time at which message would be consumed.- Returns:
- message was enqueue successfully or failed.
-
enqueueUniqueAtWithPriority
default reactor.core.publisher.Mono<Boolean> enqueueUniqueAtWithPriority(String queueName, String priority, String messageId, Object message, long timeInMilliSeconds) Schedule unique messages on the given queue at the provided time. It will be available to consume as soon as the given time is reached.- Parameters:
queueName- on which queue message has to be sendpriority- priority of the given messagemessage- message object it could be any arbitrary object.messageId- a unique identifier message id for this messagetimeInMilliSeconds- time at which this message has to be consumed.- Returns:
- message was enqueue successfully or failed.
-
enqueuePeriodic
reactor.core.publisher.Mono<String> enqueuePeriodic(String queueName, Object message, long periodInMilliSeconds) Enqueue a message on given queue that will be running after a given period. It works like periodic cron that's scheduled at certain interval, for example every 30 seconds.- Parameters:
queueName- on which queue message has to be sendmessage- message object it could be any arbitrary object.periodInMilliSeconds- period of this job in milliseconds.- Returns:
- message id on successful enqueue otherwise null.
-
enqueuePeriodic
default reactor.core.publisher.Mono<String> enqueuePeriodic(String queueName, Object message, long period, TimeUnit unit) Enqueue a message on given queue that will be running after a given period. It works like periodic cron that's scheduled at certain interval, for example every 30 seconds.- Parameters:
queueName- on which queue message has to be sendmessage- message object it could be any arbitrary object.period- period of this jobunit- period unit- Returns:
- message id on successful enqueue otherwise null.
-
enqueuePeriodic
default reactor.core.publisher.Mono<String> enqueuePeriodic(String queueName, Object message, Duration period) Enqueue a message on given queue that will be running after a given period. It works like periodic cron that's scheduled at certain interval, for example every 30 seconds.- Parameters:
queueName- on which queue message has to be sendmessage- message object it could be any arbitrary object.period- job period- Returns:
- message id on successful enqueue otherwise null.
-
enqueuePeriodic
reactor.core.publisher.Mono<Boolean> enqueuePeriodic(String queueName, String messageId, Object message, long periodInMilliSeconds) Enqueue a message on given queue that will be running after a given period. It works like periodic cron that's scheduled at certain interval, for example every 30 seconds.- Parameters:
queueName- on which queue message has to be sendmessageId- message id corresponding to this messagemessage- message object it could be any arbitrary object.periodInMilliSeconds- period of this job in milliseconds.- Returns:
- success or failure
-
enqueuePeriodic
default reactor.core.publisher.Mono<Boolean> enqueuePeriodic(String queueName, String messageId, Object message, long period, TimeUnit unit) Enqueue a message on given queue that will be running after a given period. It works like periodic cron that's scheduled at certain interval, for example every 30 seconds.- Parameters:
queueName- on which queue message has to be sendmessageId- message id corresponding to this messagemessage- message object it could be any arbitrary object.period- period of this job .unit- unit of this period- Returns:
- success or failure
-
enqueuePeriodic
default reactor.core.publisher.Mono<Boolean> enqueuePeriodic(String queueName, String messageId, Object message, Duration period) Enqueue a message on given queue that will be running after a given period. It works like periodic cron that's scheduled at certain interval, for example every 30 seconds.- Parameters:
queueName- on which queue message has to be sendmessageId- message id corresponding to this messagemessage- message object it could be any arbitrary object.period- period of this job .- Returns:
- success or failure
-