Package net.carcdr.ycrdt
Interface YSubscription
- All Superinterfaces:
AutoCloseable
Handle to a registered observer subscription.
Closing the subscription unregisters the observer.
-
Method Details
-
getSubscriptionId
long getSubscriptionId()Returns the internal subscription ID.- Returns:
- the subscription ID
-
getObserver
YObserver getObserver()Returns the registered observer, if available.- Returns:
- the observer, or null for update observers
-
getTarget
-
isClosed
boolean isClosed()Checks if this subscription has been closed.- Returns:
- true if closed, false otherwise
-
close
void close()Unregisters the observer and releases resources.- Specified by:
closein interfaceAutoCloseable
-