Package com.neovisionaries.ws.client
Class Connectable
- java.lang.Object
-
- com.neovisionaries.ws.client.Connectable
-
- All Implemented Interfaces:
java.util.concurrent.Callable<WebSocket>
class Connectable extends java.lang.Object implements java.util.concurrent.Callable<WebSocket>
An implementation ofCallable
interface that callsWebSocket.connect()
.- Since:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private WebSocket
mWebSocket
-
Constructor Summary
Constructors Constructor Description Connectable(WebSocket ws)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebSocket
call()
-
-
-
Field Detail
-
mWebSocket
private final WebSocket mWebSocket
-
-
Constructor Detail
-
Connectable
public Connectable(WebSocket ws)
-
-
Method Detail
-
call
public WebSocket call() throws WebSocketException
- Specified by:
call
in interfacejava.util.concurrent.Callable<WebSocket>
- Throws:
WebSocketException
-
-