@Override
        public boolean tooManyFailures(int nodeIndex) {
            if (nodeFailures.size() > nodeIndex && nodeFailures.get(nodeIndex) > failureLimit) {
                nodeFailures.set(nodeIndex, 0);
                return true;
            } else {
                return false;
            }
        }
Class that tracks a failure of a given type per node.
documentapi/src/main/java/com/yahoo/documentapi/messagebus/protocol/ContentPolicy.java