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

com.github.bingoohuang.springrestclient.utils.Futures Maven / Gradle / Ivy

There is a newer version: 0.0.23
Show newest version
package com.github.bingoohuang.springrestclient.utils;

import com.mashape.unirest.http.HttpResponse;
import lombok.experimental.UtilityClass;

import java.util.concurrent.Future;

@UtilityClass
public class Futures {
    public Future convertFutureVoid(final Future> future,
                                          final Class beanClass,
                                          final RestReq restReq) {
        return new VoidFuture(future, restReq);
    }

    public  Future convertFuture(final Future> future,
                                       final Class beanClass,
                                       final RestReq restReq) {
        return new RestFuture(future, beanClass, restReq);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy