Class NativeFutureCallback

java.lang.Object
org.bitcoinj.jni.NativeFutureCallback
All Implemented Interfaces:
com.google.common.util.concurrent.FutureCallback

@Deprecated public class NativeFutureCallback extends Object implements com.google.common.util.concurrent.FutureCallback
Deprecated.
See https://github.com/bitcoinj/bitcoinj/issues/2465
An event listener that relays events to a native C++ object. A pointer to that object is stored in this class using JNI on the native side, thus several instances of this can point to different actual native implementations.
  • Field Details

    • ptr

      public long ptr
      Deprecated.
  • Constructor Details

    • NativeFutureCallback

      public NativeFutureCallback()
      Deprecated.
  • Method Details

    • onSuccess

      public void onSuccess(Object o)
      Deprecated.
      Specified by:
      onSuccess in interface com.google.common.util.concurrent.FutureCallback
    • onFailure

      public void onFailure(Throwable throwable)
      Deprecated.
      Specified by:
      onFailure in interface com.google.common.util.concurrent.FutureCallback