Class NativeFutureCallback

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

public class NativeFutureCallback extends Object implements com.google.common.util.concurrent.FutureCallback
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
  • Constructor Details

    • NativeFutureCallback

      public NativeFutureCallback()
  • Method Details

    • onSuccess

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

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