Publisher

A Publisher holds the source of data, and then publishes data elements as per the request from a subscriber. A Subscriber can then attach a subscription on the Publisher. Note that the subscribe method is just a registration method, and will not return any result:

    public interface Publisher<T> {
public void subscribe(Subscriber<? super T> s);
}