Java 类org.bitcoinj.core.listeners.ReorganizeListener 实例源码

项目:FJSTSeniorProjectSpring2017    文件:CustomKit.java   
/** Adds a Blockchain ReorganizeListener.
 * @param rl ReorganizeListener to add. */
public void addReorganizeListener(ReorganizeListener rl) {
    reorganizeListeners.add(rl);
    wak.chain().addReorganizeListener(rl);
}
项目:FJSTSeniorProjectSpring2017    文件:CustomKit.java   
/** Removes a Blockchain ReorganizeListener.
 * @param rl ReorganizeListener to remove. */
public void removeReorganizeListener(ReorganizeListener rl) {
    reorganizeListeners.remove(rl);
    wak.chain().removeReorganizeListener(rl);
}
项目:FJSTSeniorProjectSpring2017    文件:CustomKit.java   
/** Removes all Blockchain ReorganizeListener(s). */
public void removeAllReorganizeListener() {
    for(ReorganizeListener rl : reorganizeListeners)
        wak.chain().removeReorganizeListener(rl);
    reorganizeListeners.clear();
}