public class QBPingManager
extends Manager
Modifier and Type | Method and Description |
---|---|
void |
addPingFailedListener(PingFailedListener pingFailedListener) |
java.util.List<java.lang.String> |
errorsToList(java.lang.String... errors) |
boolean |
pingServer()
Pings the server.
|
void |
pingServer(QBEntityCallback<java.lang.Void> callback)
Pings the server asynchronous.
|
boolean |
pingUser(int userId)
Pings the given user.
|
void |
pingUser(int userId,
QBEntityCallback<java.lang.Void> callback)
Pings the given user asynchronous.
|
void |
removePingFailedListener(PingFailedListener pingFailedListener) |
void |
setPingInterval(int pingInterval)
Set the interval between the server is automatic pinged.
|
public void addPingFailedListener(PingFailedListener pingFailedListener)
public void removePingFailedListener(PingFailedListener pingFailedListener)
public boolean pingServer() throws SmackException.NotConnectedException
SmackException.NotConnectedException
public void pingServer(QBEntityCallback<java.lang.Void> callback)
public boolean pingUser(int userId) throws SmackException.NotConnectedException
userId
- The id of user the ping is being sent toSmackException.NotConnectedException
public void pingUser(int userId, QBEntityCallback<java.lang.Void> callback)
userId
- The id of user the ping is being sent topublic void setPingInterval(int pingInterval)
pingInterval
- the interval between the pingpublic java.util.List<java.lang.String> errorsToList(java.lang.String... errors)