From 2b664ee88b75ad2da3929082c07ff0a2e7a3873b Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 26 Dec 2014 21:29:46 +0100 Subject: [PATCH] Improve PingManager javadoc --- .../java/org/jivesoftware/smackx/ping/PingManager.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/ping/PingManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/ping/PingManager.java index 6c9997d0b..18bde0166 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/ping/PingManager.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/ping/PingManager.java @@ -51,8 +51,12 @@ import org.jivesoftware.smackx.ping.packet.Ping; /** * Implements the XMPP Ping as defined by XEP-0199. The XMPP Ping protocol allows one entity to * ping any other entity by simply sending a ping to the appropriate JID. PingManger also - * periodically sends XMPP pings to the server every 30 minutes to avoid NAT timeouts and to test + * periodically sends XMPP pings to the server to avoid NAT timeouts and to test * the connection status. + *

+ * The default server ping interval is 30 minutes and can be modified with + * {@link #setDefaultPingInterval(int)} and {@link #setPingInterval(int)}. + *

* * @author Florian Schmaus * @see XEP-0199:XMPP Ping @@ -90,6 +94,9 @@ public class PingManager extends Manager { return pingManager; } + /** + * The default ping interval in seconds used by new PingManager instances. The default is 30 minutes. + */ private static int defaultPingInterval = 60 * 30; /**