Package org.bitcoinj.jni
Class NativeFutureCallback
- java.lang.Object
-
- org.bitcoinj.jni.NativeFutureCallback
-
- All Implemented Interfaces:
com.google.common.util.concurrent.FutureCallback
public class NativeFutureCallback extends java.lang.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 Summary
Fields Modifier and Type Field Description long
ptr
-
Constructor Summary
Constructors Constructor Description NativeFutureCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onFailure(java.lang.Throwable throwable)
void
onSuccess(java.lang.Object o)
-
-
-
Method Detail
-
onSuccess
public void onSuccess(java.lang.Object o)
- Specified by:
onSuccess
in interfacecom.google.common.util.concurrent.FutureCallback
-
onFailure
public void onFailure(java.lang.Throwable throwable)
- Specified by:
onFailure
in interfacecom.google.common.util.concurrent.FutureCallback
-
-