All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.kora.common.util.flow.DrainSubscriber Maven / Gradle / Ivy

There is a newer version: 1.1.16
Show newest version
package ru.tinkoff.kora.common.util.flow;

import java.util.concurrent.Flow;

public class DrainSubscriber implements Flow.Subscriber {
    @Override
    public void onSubscribe(Flow.Subscription subscription) {
        subscription.request(Long.MAX_VALUE);
    }

    @Override
    public void onNext(T item) {

    }

    @Override
    public void onError(Throwable throwable) {

    }

    @Override
    public void onComplete() {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy