Example #1
0
 private void invokeConnectFailureCallback(Exception e) {
   AsyncResult<Boolean> cb = connectCallback;
   connectCallback = nopAsyncBooleanResult;
   cb.onFailure(e);
   ;
 }
Example #2
0
 private void invokeReadFailureCallback(Exception e) {
   AsyncResult<String> cb = readCallback;
   readCallback = nopAsyncStringResult;
   cb.onFailure(e);
 }
Example #3
0
 private void invokeConnectSuccessfulCallback() {
   AsyncResult<Boolean> cb = connectCallback;
   connectCallback = nopAsyncBooleanResult;
   cb.onSuccess(true);
 }
Example #4
0
 private void invokeReadSuccessfulCallback(String result) {
   AsyncResult<String> cb = readCallback;
   readCallback = nopAsyncStringResult;
   cb.onSuccess(result);
 }