graphql.execution.reactive.DelegatingSubscription Maven / Gradle / Ivy
package graphql.execution.reactive;
import org.reactivestreams.Subscription;
import static graphql.Assert.assertNotNull;
/**
* A simple subscription that delegates to another
*/
public class DelegatingSubscription implements Subscription {
private final Subscription upstreamSubscription;
public DelegatingSubscription(Subscription upstreamSubscription) {
this.upstreamSubscription = assertNotNull(upstreamSubscription);
}
@Override
public void request(long n) {
upstreamSubscription.request(n);
}
@Override
public void cancel() {
upstreamSubscription.cancel();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy