Define your interface:
public interface MyInterface {
public void myMethod();
}
add it as paramter for your method
public void httpReq (final String url, final Object postData, String callbackFunct, Object callbackParam,String callbackFailFunct, MyInterface myInterface) {
// when the condition happens you can call myInterface.myMethod();
}
when you call your method you will have, for instance,
myObjec.httpReq(url, postData, callbackFunct, callbackParam, callbackFailFunct,
new MyInterface() {
@Override
public void myMethod() {
}
});
is that what you need?