Package net.carcdr.ycrdt.panama
Class PanamaYSubscription
java.lang.Object
net.carcdr.ycrdt.panama.PanamaYSubscription
- All Implemented Interfaces:
AutoCloseable,net.carcdr.ycrdt.YSubscription
Panama FFM implementation of YSubscription for document update observers.
This class manages the lifecycle of Panama upcall stubs, which are native function pointers that invoke Java code. The Arena holding the upcall stub must remain open for the entire lifetime of the subscription.
-
Method Details
-
getSubscriptionId
public long getSubscriptionId()- Specified by:
getSubscriptionIdin interfacenet.carcdr.ycrdt.YSubscription
-
getObserver
public net.carcdr.ycrdt.YObserver getObserver()- Specified by:
getObserverin interfacenet.carcdr.ycrdt.YSubscription
-
getUpdateObserver
public net.carcdr.ycrdt.UpdateObserver getUpdateObserver()Gets the UpdateObserver for this subscription.- Returns:
- the update observer
-
getTarget
- Specified by:
getTargetin interfacenet.carcdr.ycrdt.YSubscription
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfacenet.carcdr.ycrdt.YSubscription
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacenet.carcdr.ycrdt.YSubscription
-