1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +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 {
reload();
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) {
this.rosterStore = rosterStore;
try {