public abstract class VoiceSdkNativePeer
extends java.lang.Object
implements java.lang.AutoCloseable
nativeId
used to identify it
- perform necessary actions
- release the object using its nativeIdModifier and Type | Field and Description |
---|---|
protected long |
nativeId
'Handle' value used to identify the native peer in native layer
|
Modifier | Constructor and Description |
---|---|
protected |
VoiceSdkNativePeer(long nativeId) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases the native allocated memory
|
boolean |
equals(java.lang.Object o) |
protected void |
finalize() |
int |
hashCode() |
protected abstract void |
release()
This method should release resources on native layer (indirectly using nativeId)
|
protected final long nativeId
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected abstract void release()
protected void finalize()
finalize
in class java.lang.Object
public void close()
close
in interface java.lang.AutoCloseable
VoiceSdkEngineException
- wraps native exceptions