org.smartboot.http.client.impl.QueueUnit Maven / Gradle / Ivy
/*******************************************************************************
* 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;
}
}