mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +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 {
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue