I am learning the Reactive Stream API of Java 9.
As it has the Publisher and Subscriber, and the Subscriber subscribes to the Publisher and the Subscriber also implements the following messages:
public class TestSubscriber<T> implements Subscriber<T> {
@Override
public void onComplete() {
// TODO Auto-generated method stub
}
@Override
public void onError(Throwable arg0) {
// TODO Auto-generated method stub
}
@Override
public void onNext(T arg0) {
// TODO Auto-generated method stub
}
@Override
public void onSubscribe(Subscription arg0) {
// TODO Auto-generated method stub
}
}
I did not found any method in Subscriber which passes/transfers the message to another subscriber. Any suggestions?