Class ObjectChangeClientWebSocket
java.lang.Object
io.bdeploy.jersey.ws.change.client.ObjectChangeClientWebSocket
- All Implemented Interfaces:
NoThrowAutoCloseable,AutoCloseable
Wraps a
WebSocket with functionality regarding ObjectChangeRegistrationDto.-
Constructor Summary
ConstructorsConstructorDescriptionObjectChangeClientWebSocket(com.ning.http.client.AsyncHttpClient client, com.ning.http.client.ws.WebSocket webSocket) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidsubscribe(String type, ObjectScope scope) Subscribe to subsequent changes of the given type and scope.voidunsubscribe(String type, ObjectScope scope) Unsubscribe from subsequent changes of the given type and scope.
-
Constructor Details
-
ObjectChangeClientWebSocket
public ObjectChangeClientWebSocket(com.ning.http.client.AsyncHttpClient client, com.ning.http.client.ws.WebSocket webSocket)
-
-
Method Details
-
subscribe
Subscribe to subsequent changes of the given type and scope. -
unsubscribe
Unsubscribe from subsequent changes of the given type and scope. -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceNoThrowAutoCloseable
-