We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33564eb commit 63dfc9dCopy full SHA for 63dfc9d
javalite-async/src/main/java/org/javalite/async/Async.java
@@ -531,6 +531,22 @@ public int removeAllMessages(String queueName) {
531
}
532
533
534
+ /**
535
+ * Moves all messages from one queue to another
536
+ * @param source name of source queue
537
+ * @param target name of target queue
538
+ *
539
+ * @return number of messages moved
540
+ */
541
+ public int moveMessages(String source, String target){
542
+
543
+ try {
544
+ return getQueueControl(source).moveMessages("", target);
545
+ } catch (Exception e) {
546
+ throw new AsyncException(e);
547
+ }
548
549
550
551
/**
552
* Get additional JMS configuration.
0 commit comments