dhtrouterobserver.java

来自「JAVA多torrent下载程序P2P源码 This is a strippe」· Java 代码 · 共 61 行

JAVA
61
字号
package com.aelitis.azureus.core.dht.router;

import com.aelitis.azureus.core.dht.router.DHTRouterContact;

/**
 * Observer interface to allow monitoring of contacts in the routing table.
 * 
 * @author Michael Parker
 */
public interface DHTRouterObserver {
	/**
	 * Observer method invoked when a contact is added to the routing table.
	 * 
	 * @param contact
	 * the added contact
	 */
	public void added(DHTRouterContact contact);
	
	/**
	 * Observer method invoked when a contact is removed from the routing table.
	 * 
	 * @param contact
	 * the removed contact
	 */
	public void removed(DHTRouterContact contact);
	
	/**
	 * Observer method invoked when a contact changes between a bucket entry and a
	 * replacement in the routing table.
	 * 
	 * @param contact
	 * the contact that changed location
	 */
	public void locationChanged(DHTRouterContact contact);
	
	/**
	 * Observer method invoked when a contact is found to be alive.
	 * 
	 * @param contact
	 * the contact now alive
	 */
	public void nowAlive(DHTRouterContact contact);
	
	/**
	 * Observer method invoked when a contact is found to be failing.
	 * 
	 * @param contact
	 * the contact now failing
	 */
	public void nowFailing(DHTRouterContact contact);
	
	/**
	 * Router is not longer in use
	 * @param router
	 */
	
	public void
	destroyed(
		DHTRouter	router );
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?