private void onNetworkEvent(ReplicaId replicaId, NetworkClientErrorCode errorCode) {
    switch (errorCode) {
      case NetworkError:
        clusterMap.onReplicaEvent(replicaId, ReplicaEventType.Node_Timeout);
        break;
      default:
        break;
    }
  }
Act on an event in the form of a {@link NetworkClientErrorCode} on the given {@link ReplicaId}
@param replicaId the {@link ReplicaId} to which the request that received the error was made.
@param errorCode the {@link NetworkClientErrorCode} received for the request.
ambry-commons/src/main/java/com/github/ambry/commons/ResponseHandler.java