s.fisco-bcos-tars-sdk.3.5.0.source-code.Callback Maven / Gradle / Ivy
The newest version!
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (https://www.swig.org).
* Version 4.1.1
*
* Do not make changes to this file unless you know what you are doing - modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.fisco.bcos.sdk.tars;
public class Callback {
private transient long swigCPtr;
private transient boolean swigCMemOwn;
protected Callback(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Callback obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void swigSetCMemOwn(boolean own) {
swigCMemOwn = own;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
bcosJNI.delete_Callback(swigCPtr);
}
swigCPtr = 0;
}
}
protected void swigDirectorDisconnect() {
swigSetCMemOwn(false);
delete();
}
public void swigReleaseOwnership() {
swigSetCMemOwn(false);
bcosJNI.Callback_change_ownership(this, swigCPtr, false);
}
public void swigTakeOwnership() {
swigSetCMemOwn(true);
bcosJNI.Callback_change_ownership(this, swigCPtr, true);
}
public Callback() {
this(bcosJNI.new_Callback__SWIG_0(), true);
bcosJNI.Callback_director_connect(this, swigCPtr, true, true);
}
public Callback(Callback arg0) {
this(bcosJNI.new_Callback__SWIG_1(Callback.getCPtr(arg0), arg0), true);
bcosJNI.Callback_director_connect(this, swigCPtr, true, true);
}
public void onMessage(int seq) {
bcosJNI.Callback_onMessage(swigCPtr, this, seq);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy