org.fisco.bcos.web3j.protocol.websocket.WebSocketRequest Maven / Gradle / Ivy
package org.fisco.bcos.web3j.protocol.websocket;
import java.util.concurrent.CompletableFuture;
/**
* Objects necessary to process a reply for a request sent via WebSocket protocol.
*
* @param type of a data item that should be returned by the sent request
*/
class WebSocketRequest {
private CompletableFuture onReply;
private Class responseType;
public WebSocketRequest(CompletableFuture onReply, Class responseType) {
this.onReply = onReply;
this.responseType = responseType;
}
public CompletableFuture getOnReply() {
return onReply;
}
public Class getResponseType() {
return responseType;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy