1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 20:12:07 +01:00

Add javadoc for Roster.reloadAndWait()/setRosterStore()

This commit is contained in:
Florian Schmaus 2015-01-26 11:45:25 +01:00
parent 7aa784a494
commit 763139684b

View file

@ -281,11 +281,25 @@ public class Roster extends Manager {
}); });
} }
/**
* Reload the roster and block until it is reloaded.
*
* @throws NotLoggedInException
* @throws NotConnectedException
* @since 4.1
*/
public void reloadAndWait() throws NotLoggedInException, NotConnectedException { public void reloadAndWait() throws NotLoggedInException, NotConnectedException {
reload(); reload();
waitUntilLoaded(); waitUntilLoaded();
} }
/**
* Set the roster store, may cause a roster reload
*
* @param rosterStore
* @return true if the roster reload was initiated, false otherwise.
* @since 4.1
*/
public boolean setRosterStore(RosterStore rosterStore) { public boolean setRosterStore(RosterStore rosterStore) {
this.rosterStore = rosterStore; this.rosterStore = rosterStore;
try { try {