/*
 * Copyright 2016 Timothy Brooks
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package net.uncontended.precipice;

public enum Status implements Result {
    SUCCESS(false, true),
    ERROR(true, true),
    TIMEOUT(true, true),
    CANCELLED(false);

    private final boolean isFailed;
    private final boolean trackLatency;

    Status(boolean isFailed) {
        this(isFailed, false);
    }

    Status(boolean isFailed, boolean trackLatency) {
        this.isFailed = isFailed;
        this.trackLatency = trackLatency;
    }

    @Override
    public boolean isFailure() {
        return isFailed;
    }

    @Override
    public boolean isSuccess() {
        return this == SUCCESS;
    }

    @Override
    public boolean trackLatency() {
        return trackLatency;
    }

    @Override
    public boolean trackMetrics() {
        return true;
    }
}

@@ -683,22 +683,16 @@
 SS(false
-, true
 ),%0A    E
@@ -696,22 +696,16 @@
   ERROR(
-true, 
 true),%0A 
@@ -719,14 +719,8 @@
 OUT(
-true, 
 true
@@ -784,48 +784,8 @@
 led;
-%0A    private final boolean trackLatency;
 %0A%0A  
@@ -829,490 +829,193 @@
 this
-(isFailed, false);%0A    %7D%0A%0A    Status(boolean isFailed, boolean trackLatency) %7B%0A        this.isFailed = isFailed;%0A        this.trackLatency = trackLatency;%0A    %7D%0A%0A    @Override%0A    public boolean isFailure() %7B%0A        return isFailed;%0A    %7D%0A%0A    @Override%0A    public boolean isSuccess() %7B%0A        return this == SUCCESS;%0A    %7D%0A%0A    @Override%0A    public boolean trackLatency() %7B%0A        return trackLatency;%0A    %7D%0A%0A    @Override%0A    public boolean trackMetrics() %7B%0A        return true
+.isFailed = isFailed;%0A    %7D%0A%0A    @Override%0A    public boolean isFailure() %7B%0A        return isFailed;%0A    %7D%0A%0A    @Override%0A    public boolean isSuccess() %7B%0A        return this == SUCCESS
 ;%0A  

Fix compile issue