use of io.nuls.network.message.handler.NetWorkEventHandler in project nuls by nuls-io.
the class ConnectionManager method asynExecute.
private void asynExecute(BaseEvent networkEvent, Node node) {
NetWorkEventHandler handler = messageHandlerFactory.getHandler(networkEvent);
TaskManager.asynExecuteRunnable(new Runnable() {
@Override
public void run() {
try {
NetworkEventResult messageResult = handler.process(networkEvent, node);
processMessageResult(messageResult, node);
} catch (Exception e) {
Log.error(e);
}
}
});
}
Aggregations