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:
parent
7aa784a494
commit
763139684b
1 changed files with 14 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue