com.google.bitcoin.jni
Class NativeFutureCallback

java.lang.Object
  extended by 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.


Field Summary
 long ptr
           
 
Constructor Summary
NativeFutureCallback()
           
 
Method Summary
 void onFailure(Throwable throwable)
           
 void onSuccess(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ptr

public long ptr
Constructor Detail

NativeFutureCallback

public NativeFutureCallback()
Method Detail

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.