posts a request into a queue . if there is no active task , starts a new one . otherwise just remembers the request in the queue . later it can be achieved by #poprequests . concode_field_sep Object LOCK concode_elem_sep boolean myActive concode_elem_sep Consumer<Result> myResultHandler concode_elem_sep Logger LOG concode_elem_sep List<Request> myAwaitingRequests concode_field_sep List<Request> popRequests concode_elem_sep void startNewBackgroundTask concode_elem_sep void taskCompleted
void function ( @ NotNull Request arg0 ) { synchronized ( LOCK ) { myAwaitingRequests . add ( arg0 ) ; LOG . debug ( "srini_string" + arg0 ) ; if ( ! myActive ) { startNewBackgroundTask ( ) ; LOG . debug ( "srini_string" ) ; myActive = true ; } } }