package fault.metrics;

import fault.concurrent.LongAdder;

/**
 * Created by timbrooks on 6/1/15.
 */
public class Second {

    private final LongAdder successes = new LongAdder();
    private final LongAdder errors = new LongAdder();
    private final LongAdder timeouts = new LongAdder();
    private final LongAdder circuitOpen = new LongAdder();
    private final LongAdder queueFull = new LongAdder();
    private final LongAdder maxConcurrencyExceeded = new LongAdder();
}

@@ -471,11 +471,765 @@
 Adder();
+%0A%0A    public void incrementMetric(Metric metric) %7B%0A        switch (metric) %7B%0A            case SUCCESS:%0A                successes.increment();%0A                break;%0A            case ERROR:%0A                errors.increment();%0A                break;%0A            case TIMEOUT:%0A                timeouts.increment();%0A                break;%0A            case CIRCUIT_OPEN:%0A                circuitOpen.increment();%0A                break;%0A            case QUEUE_FULL:%0A                queueFull.increment();%0A                break;%0A            case MAX_CONCURRENCY_LEVEL_EXCEEDED:%0A                maxConcurrencyExceeded.increment();%0A                break;%0A            default:%0A                throw new RuntimeException(%22Unknown metric: %22 + metric);%0A        %7D%0A    %7D
 %0A%7D%0A

Add method to increment metrics