T
- The class for the Observablepublic final class UnsafeObservableBuilder<T>
extends java.lang.Object
Constructor and Description |
---|
UnsafeObservableBuilder() |
Modifier and Type | Method and Description |
---|---|
rx.Observable<T> |
build()
Returns an Observable the performs all event's given to the builder when subscribed to
|
UnsafeObservableBuilder<T> |
complete()
Adds a new event that notifies all subscribers that the Observable has completed
All further events will still be performed on the subscriber even though it's terminated
|
UnsafeObservableBuilder<T> |
emit(T item)
Adds a new event to the observable that emits the given item
|
UnsafeObservableBuilder<T> |
error(java.lang.Throwable error)
Adds a new event to the observable that errors using the given error
All further events will still be performed on the subscriber even though it's terminated
|
UnsafeObservableBuilder<T> |
notify(rx.Notification<T> notification)
Adds a bew event that performs the given Notification through the Observable
|
UnsafeObservableBuilder<T> |
perform(rx.functions.Action1<rx.Subscriber<? super T>> action)
Adds a new event to the observable that performs the specified action on the subscription
|
UnsafeObservableBuilder<T> |
perform(java.lang.Runnable runnable)
Adds a new event to the observable that runs the specified runnable
|
UnsafeObservableBuilder<T> |
sleep(long mills)
Adds a new event to the observable that will delay all further event's by the specified amount of time
|
public UnsafeObservableBuilder<T> emit(T item)
item
- The item to emitpublic UnsafeObservableBuilder<T> error(java.lang.Throwable error)
error
- The errorpublic UnsafeObservableBuilder<T> complete()
public UnsafeObservableBuilder<T> sleep(long mills)
mills
- How long to delay in millisecondspublic UnsafeObservableBuilder<T> notify(rx.Notification<T> notification)
notification
- The Notification to performpublic UnsafeObservableBuilder<T> perform(rx.functions.Action1<rx.Subscriber<? super T>> action)
action
- The action to be performedpublic UnsafeObservableBuilder<T> perform(java.lang.Runnable runnable)
runnable
- The runnable to runpublic rx.Observable<T> build()