All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.larksuite.oapi.core.api.ReqCaller Maven / Gradle / Ivy

Go to download

Larksuite open platform facilitates the integration of enterprise applications and larksuite, making collaboration and management more efficient

There is a newer version: 1.0.18-rc8
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy