public Future < ? > startLoading ( MapStoreContext mapStoreContext , boolean replaceExistingValues ) { role . nextOrStay ( Role . SENDER ) ; if ( state . is ( State . LOADING ) ) { return keyLoadFinished ; } state . next ( State . LOADING ) ; return sendKeys ( mapStoreContext , replaceExistingValues ) ; }
Triggers key and value loading if there is no ongoing or completed key loading task otherwise does nothing . The actual loading is done on a separate thread .