本文整理汇总了Java中com.subgraph.orchid.Connection类的典型用法代码示例。如果您正苦于以下问题:Java Connection类的具体用法?Java Connection怎么用?Java Connection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Connection类属于com.subgraph.orchid包,在下文中一共展示了Connection类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: dashboardRender
import com.subgraph.orchid.Connection; //导入依赖的package包/类
public void dashboardRender(DashboardRenderer renderer, PrintWriter writer, int flags) throws IOException {
if((flags & DASHBOARD_CONNECTIONS) == 0) {
return;
}
printDashboardBanner(writer, flags);
for(Connection c: getActiveConnections()) {
if(!c.isClosed()) {
renderer.renderComponent(writer, flags, c);
}
}
writer.println();
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:13,代码来源:ConnectionCacheImpl.java
示例2: getActiveConnections
import com.subgraph.orchid.Connection; //导入依赖的package包/类
List<Connection> getActiveConnections() {
final List<Connection> cs = new ArrayList<Connection>();
for(Future<ConnectionImpl> future: activeConnections.values()) {
addConnectionFromFuture(future, cs);
}
return cs;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:8,代码来源:ConnectionCacheImpl.java
示例3: bindToConnection
import com.subgraph.orchid.Connection; //导入依赖的package包/类
void bindToConnection(Connection connection) {
if(io != null) {
throw new IllegalStateException("Circuit already bound to a connection");
}
final int id = connection.bindCircuit(this);
io = new CircuitIO(this, connection, id);
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:8,代码来源:CircuitImpl.java
示例4: CircuitIO
import com.subgraph.orchid.Connection; //导入依赖的package包/类
CircuitIO(CircuitImpl circuit, Connection connection, int circuitId) {
this.circuit = circuit;
this.connection = connection;
this.circuitId = circuitId;
this.relayCellResponseQueue = new LinkedBlockingQueue<RelayCell>();
this.controlCellResponseQueue = new LinkedBlockingQueue<Cell>();
this.streamMap = new HashMap<Integer, StreamImpl>();
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:10,代码来源:CircuitIO.java
示例5: getConnection
import com.subgraph.orchid.Connection; //导入依赖的package包/类
public Connection getConnection() {
if(!isConnected())
throw new TorException("Circuit is not connected.");
return io.getConnection();
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:6,代码来源:CircuitImpl.java
示例6: getConnection
import com.subgraph.orchid.Connection; //导入依赖的package包/类
Connection getConnection() {
return connection;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:CircuitIO.java
示例7: connectionCompleted
import com.subgraph.orchid.Connection; //导入依赖的package包/类
public void connectionCompleted(Connection connection) {
if(buildHandler != null) {
buildHandler.connectionCompleted(connection);
}
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:6,代码来源:CircuitCreationRequest.java
注:本文中的com.subgraph.orchid.Connection类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论