All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jd.blockchain.transaction.OperationResultHandle Maven / Gradle / Ivy

There is a newer version: 1.6.5.RELEASE
Show newest version
package com.jd.blockchain.transaction;

import com.jd.blockchain.ledger.BytesValue;

/**
 * 操作返回值处理器;
 * 
 * @author huanghaiquan
 *
 */
interface OperationResultHandle {

	/**
	 * 操作的索引位置;
	 * 
	 * @return
	 */
	int getOperationIndex();

	/**
	 * 正常地完成;
	 * 
	 * @param returnBytesValue
	 * @return
	 */
	Object complete(BytesValue returnBytesValue);

	/**
	 * 以异常方式完成;
	 * 
	 * @param error
	 */
	void complete(Throwable error);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy