com.larksuite.oapi.core.api.ReqCaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of larksuite-oapi Show documentation
Show all versions of larksuite-oapi Show documentation
Larksuite open platform facilitates the integration of enterprise applications and larksuite, making
collaboration and management more efficient
package com.larksuite.oapi.core.api;
import com.larksuite.oapi.core.api.response.Response;
import java.util.concurrent.Callable;
public abstract class ReqCaller implements Callable> {
private int idx$$;
private volatile Response response;
private volatile Exception exception;
public abstract Response execute() throws Exception;
@Override
public ReqCaller call() {
try {
this.response = execute();
} catch (Exception e) {
this.exception = e;
}
return this;
}
protected int getIdx$$() {
return idx$$;
}
protected void setIdx$$(int idx$$) {
this.idx$$ = idx$$;
}
public Response getResponse() {
return response;
}
public Exception getException() {
return exception;
}
}