|
Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
Java counterpart to C++ jau::JavaUplink. More...
Public Member Functions | |
| final void | delete () |
Deletes the nativeInstance in the following order. More... | |
Protected Member Functions | |
| DBTNativeDownlink () | |
| DBTNativeDownlink (final long nativeInstance) | |
| abstract void | deleteImpl (long nativeInstance) |
| Deletes the native instance. More... | |
| void | finalize () |
| final void | initDownlink (final long nativeInstance) |
| final boolean | isNativeValid () |
| Returns true if native instance is valid, otherwise false. More... | |
Java counterpart to C++ jau::JavaUplink.
Store the native std::shared_ptr<T> * long representation and handles the lifecycles of
jau::JavaUplink's std::shared_ptr<JavaAnon> via JavaUplink::setJavaObject()std::shared_ptr<T> * long representation in long nativeInstanceUsing a shared_ptr<T> ensures surviving of the native object when temporary copied within JNI methods w/o locking.
Definition at line 43 of file DBTNativeDownlink.java.
|
protected |
| nativeInstance |
Definition at line 54 of file DBTNativeDownlink.java.
|
protected |
Definition at line 60 of file DBTNativeDownlink.java.
|
protected |
|
protected |
Returns true if native instance is valid, otherwise false.
Definition at line 79 of file DBTNativeDownlink.java.
|
protected |
Reimplemented in jau.direct_bt.DBTObject.
Definition at line 82 of file DBTNativeDownlink.java.
| final void jau.direct_bt.DBTNativeDownlink.delete | ( | ) |
Deletes the nativeInstance in the following order.
nativeInstance, i.e. std::shared_ptr<JavaAnon> via JavaUplink::setJavaObject() nativeInstance via deleteImpl(long) nativeInstance reference Definition at line 95 of file DBTNativeDownlink.java.
|
abstractprotected |
Deletes the native instance.
Called via delete() and at this point
JavaUplink's javaObjectRef = nullptr nativeInstance reference has been zeroed, but passed as argument for this final native deletion task. | nativeInstance | copy of nativeInstance reference, which has been already zeroed. |
Reimplemented in jau.direct_bt.DBTAdapter, jau.direct_bt.DBTDevice, jau.direct_bt.DBTGattChar, jau.direct_bt.DBTGattDesc, jau.direct_bt.DBTGattService, org.direct_bt.AdapterStatusListener, and org.direct_bt.BTGattCharListener.