本文整理汇总了Java中org.bitcoinj.wallet.listeners.WalletCoinsSentEventListener类的典型用法代码示例。如果您正苦于以下问题:Java WalletCoinsSentEventListener类的具体用法?Java WalletCoinsSentEventListener怎么用?Java WalletCoinsSentEventListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WalletCoinsSentEventListener类属于org.bitcoinj.wallet.listeners包,在下文中一共展示了WalletCoinsSentEventListener类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: queueOnCoinsSent
import org.bitcoinj.wallet.listeners.WalletCoinsSentEventListener; //导入依赖的package包/类
protected void queueOnCoinsSent(final Transaction tx, final Coin prevBalance, final Coin newBalance) {
checkState(lock.isHeldByCurrentThread());
for (final ListenerRegistration<WalletCoinsSentEventListener> registration : coinsSentListeners) {
registration.executor.execute(new Runnable() {
@Override
public void run() {
registration.listener.onCoinsSent(Wallet.this, tx, prevBalance, newBalance);
}
});
}
}
开发者ID:guodroid,项目名称:okwallet,代码行数:12,代码来源:Wallet.java
示例2: addCoinsSentEventListener
import org.bitcoinj.wallet.listeners.WalletCoinsSentEventListener; //导入依赖的package包/类
/**
* Adds an event listener object called when coins are sent.
* The listener is executed by the given executor.
*/
public void addCoinsSentEventListener(Executor executor, WalletCoinsSentEventListener listener) {
// This is thread safe, so we don't need to take the lock.
coinsSentListeners.add(new ListenerRegistration<>(listener, executor));
}
开发者ID:guodroid,项目名称:okwallet,代码行数:9,代码来源:Wallet.java
示例3: addCoinsSentEventListener
import org.bitcoinj.wallet.listeners.WalletCoinsSentEventListener; //导入依赖的package包/类
/**
* Adds an event listener object called when coins are sent.
* The listener is executed by the given executor.
*/
public void addCoinsSentEventListener(Executor executor, WalletCoinsSentEventListener listener) {
// This is thread safe, so we don't need to take the lock.
coinsSentListeners.add(new ListenerRegistration<WalletCoinsSentEventListener>(listener, executor));
}
开发者ID:Grant-Redmond,项目名称:cryptwallet,代码行数:9,代码来源:Wallet.java
示例4: removeCoinsSentEventListener
import org.bitcoinj.wallet.listeners.WalletCoinsSentEventListener; //导入依赖的package包/类
/**
* Removes the given event listener object. Returns true if the listener was removed, false if that listener
* was never added.
*/
public boolean removeCoinsSentEventListener(WalletCoinsSentEventListener listener) {
return ListenerRegistration.removeFromList(listener, coinsSentListeners);
}
开发者ID:guodroid,项目名称:okwallet,代码行数:8,代码来源:Wallet.java
注:本文中的org.bitcoinj.wallet.listeners.WalletCoinsSentEventListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论