All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nohope.test.stress.AbstractMeasureData Maven / Gradle / Ivy

The newest version!
package org.nohope.test.stress;

import org.nohope.test.stress.functors.Call;
import org.nohope.test.stress.functors.Get;

/**
 * @author Ketoth Xupack
 * @since 2013-12-29 18:19
 */
public abstract class AbstractMeasureData {
    private final int threadId;
    private final int operationNumber;

    protected AbstractMeasureData(final int threadId, final int operationNumber) {
        this.threadId = threadId;
        this.operationNumber = operationNumber;
    }

    public long getThreadId() {
        return threadId;
    }

    public final int getOperationNumber() {
        return operationNumber;
    }

    public abstract  T get(final String name, final Get getter) throws Exception;

    public abstract void call(final String name, final Call call) throws Exception;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy