Package rx.internal.operators
Class OperatorDoOnUnsubscribe<T>
- java.lang.Object
-
- rx.internal.operators.OperatorDoOnUnsubscribe<T>
-
- Type Parameters:
T
- The type of the elements in theObservable
that this operator modifies
- All Implemented Interfaces:
Func1<Subscriber<? super T>,Subscriber<? super T>>
,Function
,Observable.Operator<T,T>
public class OperatorDoOnUnsubscribe<T> extends java.lang.Object implements Observable.Operator<T,T>
This operator modifies anObservable
so a given action is invoked when theObservable
is unsubscribed.
-
-
Field Summary
Fields Modifier and Type Field Description private Action0
unsubscribe
-
Constructor Summary
Constructors Constructor Description OperatorDoOnUnsubscribe(Action0 unsubscribe)
Constructs an instance of the operator with the callback that gets invoked when the modified Observable is unsubscribed
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Subscriber<? super T>
call(Subscriber<? super T> child)
-
-
-
Field Detail
-
unsubscribe
private final Action0 unsubscribe
-
-
Constructor Detail
-
OperatorDoOnUnsubscribe
public OperatorDoOnUnsubscribe(Action0 unsubscribe)
Constructs an instance of the operator with the callback that gets invoked when the modified Observable is unsubscribed- Parameters:
unsubscribe
- The action that gets invoked when the modifiedObservable
is unsubscribed
-
-
Method Detail
-
call
public Subscriber<? super T> call(Subscriber<? super T> child)
- Specified by:
call
in interfaceFunc1<Subscriber<? super T>,Subscriber<? super T>>
-
-