The Subscription interface

The definition of this interface is as follows:

public interface Subscription {
public void request(long n);
public void cancel();
}

The method request is for accepting requests for items and method cancel is for when Subscription is cancelled.