use of tezc.core.worker.ioworker.AddConnectionEvent in project tezcRaft by tezc.
the class Core method createConnection.
/**
* Create connection for node
* @param node node
* @return connection for node
*/
public Connection createConnection(PeerNode node) {
Connection conn = new Connection(dispatcher, null, node);
dispatcher.addEvent(new AddConnectionEvent(dispatcher, conn));
return conn;
}
Aggregations