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

cc.youchain.protocol.websocket.WebSocketRequest Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
package cc.youchain.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 - 2024 Weber Informatics LLC | Privacy Policy