com.king.platform.net.http.BuiltWebSocketRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of king-http-client Show documentation
Show all versions of king-http-client Show documentation
A asyncronous http client built ontop of netty.
package com.king.platform.net.http;
import java.util.concurrent.CompletableFuture;
public interface BuiltWebSocketRequest {
/**
* Builds and executes (connects) the web-socket connection.
* @param webSocketListener the listener
* @return the future with the connected webSocketConnection
*/
CompletableFuture execute(WebSocketListener webSocketListener);
/**
* Builds a web-socket connection that is not yet connected.
* It can later be connected by calling {@link WebSocketClient#connect()}
* @return the not yet connected web-socket
*/
WebSocketClient build();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy