Package io.objectbox.reactive
Class DataSubscriptionImpl<T>
java.lang.Object
io.objectbox.reactive.DataSubscriptionImpl<T>
- All Implemented Interfaces:
DataSubscription
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate DataObserver<T> private DataPublisher<T> private Object -
Constructor Summary
ConstructorsConstructorDescriptionDataSubscriptionImpl(DataPublisher<T> publisher, Object publisherParam, DataObserver<T> observer) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()The Observer shall not receive anymore updates.booleanCurrent cancellation state of the subscription.
-
Field Details
-
canceled
private volatile boolean canceled -
publisher
-
publisherParam
-
observer
-
-
Constructor Details
-
DataSubscriptionImpl
DataSubscriptionImpl(DataPublisher<T> publisher, @Nullable Object publisherParam, DataObserver<T> observer)
-
-
Method Details
-
cancel
public void cancel()Description copied from interface:DataSubscriptionThe Observer shall not receive anymore updates.- Specified by:
cancelin interfaceDataSubscription
-
isCanceled
public boolean isCanceled()Description copied from interface:DataSubscriptionCurrent cancellation state of the subscription.- Specified by:
isCanceledin interfaceDataSubscription
-