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
1 changed files with 14 additions and 0 deletions

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 {