当前位置: 首页>>代码示例>>Java>>正文


Java PathSelectionFailedException类代码示例

本文整理汇总了Java中com.subgraph.orchid.circuits.path.PathSelectionFailedException的典型用法代码示例。如果您正苦于以下问题:Java PathSelectionFailedException类的具体用法?Java PathSelectionFailedException怎么用?Java PathSelectionFailedException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


PathSelectionFailedException类属于com.subgraph.orchid.circuits.path包,在下文中一共展示了PathSelectionFailedException类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: choosePath

import com.subgraph.orchid.circuits.path.PathSelectionFailedException; //导入依赖的package包/类
List<Router> choosePath(CircuitPathChooser pathChooser) throws InterruptedException, PathSelectionFailedException {
	if(prechosenPath != null) {
		return new ArrayList<Router>(prechosenPath);
	} else {
		return choosePathForCircuit(pathChooser);
	}
}
 
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:8,代码来源:CircuitImpl.java

示例2: choosePath

import com.subgraph.orchid.circuits.path.PathSelectionFailedException; //导入依赖的package包/类
void choosePath() throws InterruptedException, PathSelectionFailedException {
	if(!(circuit instanceof CircuitImpl)) {
		throw new IllegalArgumentException();
	}
	path = ((CircuitImpl)circuit).choosePath(pathChooser);

}
 
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:8,代码来源:CircuitCreationRequest.java

示例3: choosePathForCircuit

import com.subgraph.orchid.circuits.path.PathSelectionFailedException; //导入依赖的package包/类
@Override
protected List<Router> choosePathForCircuit(CircuitPathChooser pathChooser) throws InterruptedException, PathSelectionFailedException {
	if(prechosenPath != null) {
		return prechosenPath;
	}
	return pathChooser.chooseDirectoryPath();
}
 
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:8,代码来源:DirectoryCircuitImpl.java

示例4: choosePathForCircuit

import com.subgraph.orchid.circuits.path.PathSelectionFailedException; //导入依赖的package包/类
@Override
protected List<Router> choosePathForCircuit(CircuitPathChooser pathChooser)
		throws InterruptedException, PathSelectionFailedException {
	return pathChooser.chooseInternalPath();
}
 
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:6,代码来源:InternalCircuitImpl.java

示例5: choosePathForCircuit

import com.subgraph.orchid.circuits.path.PathSelectionFailedException; //导入依赖的package包/类
@Override
protected List<Router> choosePathForCircuit(CircuitPathChooser pathChooser) throws InterruptedException, PathSelectionFailedException {
	return pathChooser.choosePathWithExit(exitRouter);
}
 
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:5,代码来源:ExitCircuitImpl.java

示例6: choosePathForCircuit

import com.subgraph.orchid.circuits.path.PathSelectionFailedException; //导入依赖的package包/类
protected abstract List<Router> choosePathForCircuit(CircuitPathChooser pathChooser) throws InterruptedException, PathSelectionFailedException; 
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:2,代码来源:CircuitImpl.java


注:本文中的com.subgraph.orchid.circuits.path.PathSelectionFailedException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。