public class WebsocketEndpoint extends Object
| Constructor and Description |
|---|
WebsocketEndpoint(javax.websocket.WebSocketContainer webSocketContainer,
URI endpoint,
Config cfg) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
exec(RpcCallback callback,
String serviceId,
org.brutusin.json.spi.JsonNode input) |
URI |
getEndpoint() |
Map<String,ServiceItem> |
getServices() |
Map<String,ComponentItem> |
getTopics() |
boolean |
isAvailable() |
void |
subscribe(String topicId,
TopicCallback callback) |
void |
unsubscribe(String topicId) |
public Map<String,ServiceItem> getServices()
public Map<String,ComponentItem> getTopics()
public void exec(RpcCallback callback, String serviceId, org.brutusin.json.spi.JsonNode input)
public void subscribe(String topicId, TopicCallback callback)
public void unsubscribe(String topicId)
public URI getEndpoint()
public boolean isAvailable()
public void close()
throws IOException
IOExceptionCopyright © 2010–2017. All rights reserved.