public interface CircuitBuildHandler
Circuit#openCircuit(java.util.List, CircuitBuildHandler)
method.
The normal sequence of callbacks which are fired when a circuit is opened
successfully is connectionCompleted(Connection) for the initial
connection to the entry router, followed by one or more
nodeAdded(CircuitNode) as the circuit is extended with new nodes.
When all requested nodes in the path have been added successfully to the
circuit circuitBuildCompleted(Circuit) is called and passed the
newly constructed circuit.Circuit#openCircuit()| Modifier and Type | Method and Description |
|---|---|
void |
circuitBuildCompleted(Circuit circuit)
The circuit has been successfully built and is ready for use.
|
void |
circuitBuildFailed(String reason)
Called if the circuit build fails after connecting to the entry node.
|
void |
connectionCompleted(Connection connection)
Called when a network connection to the entry node has completed
successfully or if a network connection to the specified entry router
already exists.
|
void |
connectionFailed(String reason)
The circuit build has failed because the network connection to the
entry node failed.
|
void |
nodeAdded(CircuitNode node)
A node or 'hop' has been added to the circuit which is being created.
|
void connectionCompleted(Connection connection)
connection - The completed connection instance.void connectionFailed(String reason)
reason - A description of the reason for failing to connect to
the entry node.void nodeAdded(CircuitNode node)
node - The newly added circuit node.void circuitBuildCompleted(Circuit circuit)
circuit - The newly constructed circuit.void circuitBuildFailed(String reason)
reason - A description of the reason the circuit build has failed.Copyright © 2015. All rights reserved.