cancel

public void cancel(Subscription subscription, StreamObserver<Response> responseObserver)

Cancels the Subscription.

Typically invoked to cancel the previous activate() call.

After this method is called, the subscribers stop receiving the updates, related to the given Subscription.

Parameters

subscription

the subscription to cancel

responseObserver

an observer to notify of a successful acknowledgement of the subscription cancellation.