T
- item type.public class LeakagePreventingWrapper<T> extends ContextProperty.Wrapper<T>
ContextProperty
wrapper which tracks the subscribers
and is able to clean them up upon clean()
method call.ContextProperty.Impl<T>, ContextProperty.Wrapper<T>
log
Constructor and Description |
---|
LeakagePreventingWrapper(ContextProperty<T> delegate) |
Modifier and Type | Method and Description |
---|---|
void |
clean() |
io.reactivex.disposables.Disposable |
observe(io.reactivex.functions.Consumer<Optional<T>> action) |
io.reactivex.disposables.Disposable |
observeNullable(io.reactivex.functions.Consumer<T> action) |
mutate, set, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nullableValue
public LeakagePreventingWrapper(ContextProperty<T> delegate)
public io.reactivex.disposables.Disposable observeNullable(io.reactivex.functions.Consumer<T> action)
observeNullable
in interface ContextProperty<T>
observeNullable
in class ContextProperty.Wrapper<T>
public io.reactivex.disposables.Disposable observe(io.reactivex.functions.Consumer<Optional<T>> action)
observe
in interface ContextProperty<T>
observe
in class ContextProperty.Wrapper<T>
public void clean()
Copyright © 2018 Magnolia International Ltd.. All rights reserved.