O
- The type of the observable being observed.public interface ObservableObserver<O extends Observable<?>>
ObservableObserver
is an observer, observing an observable. In
this case, it is a listener interface listening for the most basic
functionality an observable must provide in order to be an observable:
Subscribing and unsubscribing of listeners (observers).
The implementing observer, when registered to an according observable, gets
its onSubscribe(SubscribeEvent)
or
onUnsubscribe(UnsubscribeEvent)
methods invoked when the according
functionality is invoked upon the observable in question.Modifier and Type | Method | Description |
---|---|---|
void |
onSubscribe(SubscribeEvent<O> aSubscribeEvent) |
This method is called when information about an Observable which was
previously requested using an asynchronous interface becomes available.
|
void |
onUnsubscribe(UnsubscribeEvent<O> aUnsubscribeEvent) |
This method is called when information about an Observable which was
previously requested using an asynchronous interface becomes available.
|
void onSubscribe(SubscribeEvent<O> aSubscribeEvent)
aSubscribeEvent
- the subscribe eventvoid onUnsubscribe(UnsubscribeEvent<O> aUnsubscribeEvent)
aUnsubscribeEvent
- the unsubscribe eventCopyright © 2018. All rights reserved.