T
- the type of the eventpublic class EventPrinter<T> extends Object implements Observer<T>
Constructor and Description |
---|
EventPrinter() |
Modifier and Type | Method and Description |
---|---|
void |
onCompleted()
Notifies the observer that the provider has finished sending push-based
notifications.
|
void |
onError(Exception error)
Notifies the observer that the provider has experienced an error
condition.
|
void |
onNext(T value)
Provides the observer with new data.
|
public EventPrinter()
public void onNext(T value)
Observer
public void onError(Exception error)
Observer
public void onCompleted()
Observer
onCompleted
in interface Observer<T>
Copyright © 2016 The Apache Software Foundation. All rights reserved.