void function ( SuccessCallback < ? super T > arg0 ) { Assert . notNull ( arg0 , "srini_string" ) ; synchronized ( this . mutex ) { switch ( this . state ) { case NEW : this . successCallbacks . add ( arg0 ) ; break ; case SUCCESS : notifySuccess ( arg0 ) ; break ; } } }
add the given success callback to this registry . concode_field_sep Queue<FailureCallback> failureCallbacks concode_elem_sep Object mutex concode_elem_sep Queue<SuccessCallback<? super T>> successCallbacks concode_elem_sep State state concode_elem_sep Object result concode_field_sep void success concode_elem_sep void failure concode_elem_sep void notifyFailure concode_elem_sep void addFailureCallback concode_elem_sep void notifySuccess concode_elem_sep void addCallback