Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. public interface Publisher<T> {
  2. void subscribe(Subscriber<? super T> s);
  3. }
  4. public interface Subscriber<T> {
  5. public void onSubscribe(Subscription s);
  6. void onNext(T t);
  7. void onError(Throwable t);
  8. void onComplete();
  9. }
  10. public interface Subscription {
  11. public void request(long n);
  12. public void cancel();
  13. }
  14. public interface Processor<T, R> extends Subscriber<T>, Publisher<R> {
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement