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

com.jd.blockchain.consensus.service.NodeSession Maven / Gradle / Ivy

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

import com.jd.blockchain.consensus.NodeSettings;

public interface NodeSession {

	/**
	 * 源节点的地址;
	 * 
	 * 

* 表示获得此连接对象的 NodeServer 实例的地址,该地址是虚拟地址(由{@link NodeSettings#getAddress()}定义); * * @return */ String getSource(); /** * 目标节点的地址; *

* * @return */ String getTarget(); /** * 重置会话; * * 清空会话缓存,清空未发送或者待重试发送的消息,重置连接; */ void reset(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy