From 763139684bcba752267a6212b726c648c996a1bb Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 26 Jan 2015 11:45:25 +0100 Subject: [PATCH] Add javadoc for Roster.reloadAndWait()/setRosterStore() --- .../java/org/jivesoftware/smack/roster/Roster.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java b/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java index fa9b81bdd..69491fae7 100644 --- a/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java +++ b/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java @@ -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 {