public interface RxHub
AbstractRxHub| Modifier and Type | Interface and Description |
|---|---|
static class |
RxHub.NodeType |
static class |
RxHub.Source |
| Modifier and Type | Method and Description |
|---|---|
void |
addProvider(java.lang.Object tag,
rx.Observable provider)
Subscribes Node to
Observable. |
void |
clearProviders()
Clears all subscriptions of all Nodes
|
void |
emit(java.lang.Object tag,
java.lang.Object event)
Manually emit event to a specific Node.
|
rx.Observable |
getNode(java.lang.Object tag)
Returns the Node Observable identified by the tag
|
<T> rx.Observable<T> |
getNodeFiltered(java.lang.Object tag,
java.lang.Class<T> filterClass)
Type safe variant of
getNode(Object). |
RxHub.NodeType |
getNodeType(java.lang.Object tag) |
boolean |
isNodeThreadsafe(java.lang.Object tag) |
void |
removeProvider(java.lang.Object tag,
rx.Observable provider)
Unsubscribe
Observable from a Node |
void addProvider(java.lang.Object tag,
rx.Observable provider)
Observable.
If there is no Node with the specific tag a new one will be created
except if the node is of type RxHub.NodeType.ObservableReftag - the ID of the Nodeprovider - the Observable to subscribe tovoid removeProvider(java.lang.Object tag,
rx.Observable provider)
Observable from a Nodetag - the ID of the Nodeprovider - the Observable to unsubscribe fromvoid clearProviders()
rx.Observable getNode(java.lang.Object tag)
tag - the ID of the Node<T> rx.Observable<T> getNodeFiltered(java.lang.Object tag,
java.lang.Class<T> filterClass)
getNode(Object).
Returns the Node Observable identified by the tag and filtered by the Class providedT - the Type of the events the returned Observable will emittag - the ID of the NodefilterClass - the Class to filter the observable byvoid emit(java.lang.Object tag,
java.lang.Object event)
tag - the ID of the Nodeevent - the Event to emitRxHub.NodeType getNodeType(java.lang.Object tag)
boolean isNodeThreadsafe(java.lang.Object tag)