Disconnecting from a stream in Java

At the end of processing, the example disconnects the subscription.

subscription.disconnect();