Methods Summary |
---|
public void | clear()
refH = null;
userObj = null;
|
public android.os.Handler | getHandler()
if (refH == null)
return null;
return (Handler) refH.get();
|
void | internalNotifyRegistrant(java.lang.Object result, java.lang.Throwable exception)
Handler h = getHandler();
if (h == null) {
clear();
} else {
Message msg = Message.obtain();
msg.what = what;
msg.obj = new AsyncResult(userObj, result, exception);
h.sendMessage(msg);
}
|
public android.os.Message | messageForRegistrant()NOTE: May return null if weak reference has been collected
Handler h = getHandler();
if (h == null) {
clear();
return null;
} else {
Message msg = h.obtainMessage();
msg.what = what;
msg.obj = userObj;
return msg;
}
|
public void | notifyException(java.lang.Throwable exception)
internalNotifyRegistrant (null, exception);
|
public void | notifyRegistrant()
internalNotifyRegistrant (null, null);
|
public void | notifyRegistrant(AsyncResult ar)This makes a copy of @param ar
internalNotifyRegistrant (ar.result, ar.exception);
|
public void | notifyResult(java.lang.Object result)
internalNotifyRegistrant (result, null);
|