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

org.smartboot.http.client.impl.QueueUnit Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
/*******************************************************************************
 * Copyright (c) 2017-2021, org.smartboot. All rights reserved.
 * project name: smart-http
 * file name: QueueUnit.java
 * Date: 2021-07-12
 * Author: sandao ([email protected])
 ******************************************************************************/

package org.smartboot.http.client.impl;

import org.smartboot.http.client.HttpResponse;
import org.smartboot.http.client.ResponseHandler;

import java.util.concurrent.CompletableFuture;

public class QueueUnit {
    private final CompletableFuture future;
    private final ResponseHandler responseHandler;

    public QueueUnit(CompletableFuture future, ResponseHandler responseHandler) {
        this.future = future;
        this.responseHandler = responseHandler;
    }

    public CompletableFuture getFuture() {
        return future;
    }

    public ResponseHandler getResponseHandler() {
        return responseHandler;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy