-
public abstract class LiveEvent<T extends Object> extends LiveData<T>
A lifecycle-aware observable that sends only new updates after subscription.
This avoids a common problem with events: on configuration change (like rotation) an update can be emitted if the observer is active. This LiveData only calls the observable if there's an explicit call to setValue() or call().
Note that only one observer is going to be notified of changes.
-
-
Field Summary
Fields Modifier and Type Field Description private final ObjectmDataLockprivate final IntegermActiveCountprivate final ObjectmPendingData
-
Constructor Summary
Constructors Constructor Description LiveEvent()
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class com.alfresco.auth.data.LiveEvent
changeActiveCounter, dispatchingValue, getValue, getVersion, hasActiveObservers, hasObservers, observe, observeForever, onActive, onInactive, postValue, removeObserver, removeObservers, setValue -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-