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

com.jd.blockchain.consensus.ClientIncomingSettings Maven / Gradle / Ivy

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

import com.jd.binaryproto.DataContract;
import com.jd.binaryproto.DataField;
import com.jd.binaryproto.PrimitiveType;
import com.jd.blockchain.consts.DataCodes;

/**
 * 共识网络的客户接入参数;
 * 
 * @author huanghaiquan
 *
 */
@DataContract(code = DataCodes.CONSENSUS_CLI_INCOMING_SETTINGS)
public interface ClientIncomingSettings {

	/**
	 * 分配的客户端ID;
	 * 
	 * @return
	 */
	@DataField(order = 0, primitiveType = PrimitiveType.INT32)
	int getClientId();

	/**
	 * ProviderName
	 *
	 * @return
	 */
	@DataField(order = 1, primitiveType = PrimitiveType.TEXT)
	String getProviderName();

	/**
	 * 共识网络的配置参数;
	 * 
	 * @return
	 */
	@DataField(order = 2, refContract = true, genericContract = true)
	ConsensusViewSettings getViewSettings();

	/**
	 * 回复的凭证信息;
	 * 
	 * @return
	 */
	@DataField(order = 3, refContract = true, genericContract = true)
	SessionCredential getCredential();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy