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

com.jd.blockchain.consensus.client.ConsensusClient Maven / Gradle / Ivy

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

import java.io.Closeable;

import com.jd.blockchain.consensus.MessageService;

public interface ConsensusClient extends Closeable {

	/**
	 * 消息服务;
	 * 
	 * @return
	 */
	MessageService getMessageService();

	/**
	 * 共识客户端的配置信息;
	 * 
	 * @return
	 */
	ClientSettings getSettings();

	/**
	 * 是否已连接;
	 * 
	 * @return
	 */
	boolean isConnected();

	/**
	 * 接入共识网络;
	 */
	void connect();

	/**
	 * 断开与共识网络的连接;
	 */
	@Override
	void close();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy