mx4j/src/core/mx4j/remote MX4JRemoteConstants.java,1.8,1.9
Simone Bordet <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mx4j/mx4j/src/core/mx4j/remote
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1198/src/core/mx4j/remote
Modified Files:
MX4JRemoteConstants.java
Log Message:
Added notification queue capacity (fix for bug #1004412)
Index: MX4JRemoteConstants.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/mx4j/remote/MX4JRemoteConstants.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** MX4JRemoteConstants.java 3 Nov 2003 23:35:27 -0000 1.8
--- MX4JRemoteConstants.java 10 Aug 2004 09:35:18 -0000 1.9
***************
*** 84,90 ****
--- 84,92 ----
* {@link javax.management.remote.JMXConnector JMXConnectors} that use heartbeat to check if the
* connection with {@link javax.management.remote.JMXConnectorServer JMXConnectorServers} is still alive.
+ *
* @see #CONNECTION_HEARTBEAT_RETRIES
*/
public static final String CONNECTION_HEARTBEAT_PERIOD = "jmx.remote.x.connection.heartbeat.period";
+
/**
* MX4J's implementation uses this property to specify the number of retries of heartbeat pulses before
***************
*** 92,97 ****
--- 94,110 ----
* {@link javax.management.remote.JMXConnectorServer JMXConnectorServer} failed, at which a
* {@link javax.management.remote.JMXConnectionNotification notification failed} is emitted.
+ *
* @see #CONNECTION_HEARTBEAT_PERIOD
*/
public static final String CONNECTION_HEARTBEAT_RETRIES = "jmx.remote.x.connection.heartbeat.retries";
+
+ /**
+ * MX4J's implementation uses this property to specify the maximum notification queue size
+ * on client size. If set to 0, or not present, the queue will have no limit.
+ * Specify this property when the server side is generating notifications at a fast rate,
+ * but clients can process them only at a slower rate. In this case notifications will queue
+ * up on client side, and if no limit is given to the queue, there is a potential risk of
+ * an OutOfMemoryError.
+ */
+ public static final String NOTIFICATION_QUEUE_CAPACITY = "jmx.remote.x.queue.size";
}
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285