This is an automated email from the ASF dual-hosted git repository.

jlmonteiro pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/main by this push:
     new 7795308fc1 AMQ-9775: Add the maxBrowsePageSize attribute to the JMX 
destination MBean (#1500)
7795308fc1 is described below

commit 7795308fc193b4cde8afa3ac95f6da09a41d3b7a
Author: JB Onofré <[email protected]>
AuthorDate: Wed Feb 11 16:57:31 2026 +0100

    AMQ-9775: Add the maxBrowsePageSize attribute to the JMX destination MBean 
(#1500)
---
 .../main/java/org/apache/activemq/broker/jmx/DestinationView.java  | 6 +++++-
 .../java/org/apache/activemq/broker/jmx/DestinationViewMBean.java  | 7 +++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git 
a/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/DestinationView.java
 
b/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/DestinationView.java
index 2386d4ba10..de1d2a2752 100644
--- 
a/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/DestinationView.java
+++ 
b/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/DestinationView.java
@@ -31,7 +31,6 @@ import jakarta.jms.InvalidSelectorException;
 import jakarta.jms.MessageProducer;
 import jakarta.jms.Session;
 import java.util.function.Function;
-import java.util.function.Supplier;
 import javax.management.MalformedObjectNameException;
 import javax.management.ObjectName;
 import javax.management.openmbean.CompositeData;
@@ -524,6 +523,11 @@ public class DestinationView implements 
DestinationViewMBean {
         destination.setMaxPageSize(pageSize);
     }
 
+    @Override
+    public int getMaxBrowsePageSize() {
+        return destination.getMaxBrowsePageSize();
+    }
+
     @Override
     public boolean isUseCache() {
         return destination.isUseCache();
diff --git 
a/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/DestinationViewMBean.java
 
b/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/DestinationViewMBean.java
index 1100bd3a98..421ebb6ce3 100644
--- 
a/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/DestinationViewMBean.java
+++ 
b/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/DestinationViewMBean.java
@@ -417,6 +417,13 @@ public interface DestinationViewMBean {
      */
     public void setMaxPageSize(@MBeanInfo("pageSize") int pageSize);
 
+    /**
+     * @return the maximum number of message to be paged into the
+     * destination for browsing
+     */
+    @MBeanInfo("Maximum number of messages to be paged in for browsing")
+    public int getMaxBrowsePageSize();
+
     /**
      * @return true if caching is allowed of for the destination
      */


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to