mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 10:37:59 +01:00
Add setter and javadoc for packet reply timeout
This commit is contained in:
parent
246e7b85f8
commit
bd96816102
1 changed files with 17 additions and 0 deletions
|
@ -41,6 +41,7 @@ import java.util.logging.Logger;
|
|||
|
||||
import javax.security.sasl.SaslException;
|
||||
|
||||
import org.jivesoftware.smack.SmackException.NoResponseException;
|
||||
import org.jivesoftware.smack.SmackException.NotConnectedException;
|
||||
import org.jivesoftware.smack.SmackException.ConnectionException;
|
||||
import org.jivesoftware.smack.compression.XMPPInputOutputStream;
|
||||
|
@ -931,10 +932,26 @@ public abstract class XMPPConnection {
|
|||
rosterVersioningSupported = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current value of the reply timeout in milliseconds for request for this
|
||||
* XMPPConnection instance.
|
||||
*
|
||||
* @return the packet reply timeout in milliseconds
|
||||
*/
|
||||
public long getPacketReplyTimeout() {
|
||||
return packetReplyTimeout;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the packet reply timeout in milliseconds. In most cases, Smack will throw a
|
||||
* {@link NoResponseException} if no reply to a request was received within the timeout period.
|
||||
*
|
||||
* @param timeout the packet reply timeout in milliseconds
|
||||
*/
|
||||
public void setPacketReplyTimeout(long timeout) {
|
||||
packetReplyTimeout = timeout;
|
||||
}
|
||||
|
||||
/**
|
||||
* Processes a packet after it's been fully parsed by looping through the installed
|
||||
* packet collectors and listeners and letting them examine the packet to see if
|
||||
|
|
Loading…
Reference in a new issue