Interface WebSocketAdapter
-
- All Superinterfaces:
AutoCloseable,Closeable
public interface WebSocketAdapter extends Closeable
Basic websocket application interface facilitating different provider implementations. See implementation documentation to understand specific configuration options.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Promise<Void,IOException>sendObject(Object request)Send the supplied request over the websocket to the remote party.Promise<WebSocketAdapter,Exception>start()Start the websocket client and connect to the remote endpoint.
-
-
-
Method Detail
-
start
Promise<WebSocketAdapter,Exception> start()
Start the websocket client and connect to the remote endpoint.
-
close
void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
sendObject
Promise<Void,IOException> sendObject(Object request)
Send the supplied request over the websocket to the remote party.- Parameters:
request- The request to transmit- Returns:
Promiseof anyIOExceptionthat occurred in the event of a send failure
-
-