T - public class SimpleSubject<T> extends Object implements Subject<T,T>
| Constructor and Description |
|---|
SimpleSubject(Observer<T> observer)
Constructs a simple subject.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onCompleted()
Provides the observer with it has finished sending push-based
notifications.
|
void |
onError(Exception error)
Provides the observer with the error.
|
void |
onNext(T value)
Provides the observer with the new value.
|
@Inject public SimpleSubject(Observer<T> observer)
observer - the observerpublic void onCompleted()
onCompleted in interface Observer<T>Copyright © 2017 The Apache Software Foundation. All rights reserved.