本文整理汇总了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);
}
}
示例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);
}
示例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();
}
示例4: choosePathForCircuit
import com.subgraph.orchid.circuits.path.PathSelectionFailedException; //导入依赖的package包/类
@Override
protected List<Router> choosePathForCircuit(CircuitPathChooser pathChooser)
throws InterruptedException, PathSelectionFailedException {
return pathChooser.chooseInternalPath();
}
示例5: choosePathForCircuit
import com.subgraph.orchid.circuits.path.PathSelectionFailedException; //导入依赖的package包/类
@Override
protected List<Router> choosePathForCircuit(CircuitPathChooser pathChooser) throws InterruptedException, PathSelectionFailedException {
return pathChooser.choosePathWithExit(exitRouter);
}
示例6: choosePathForCircuit
import com.subgraph.orchid.circuits.path.PathSelectionFailedException; //导入依赖的package包/类
protected abstract List<Router> choosePathForCircuit(CircuitPathChooser pathChooser) throws InterruptedException, PathSelectionFailedException;