com.google.bitcoin.jni
Class NativeFutureCallback
java.lang.Object
com.google.bitcoin.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ptr
public long ptr
NativeFutureCallback
public NativeFutureCallback()
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
Copyright © 2014. All rights reserved.