
de.dagere.kopeme.FinishableThread Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kopeme-core Show documentation
Show all versions of kopeme-core Show documentation
KoPeMe performance testing core
package de.dagere.kopeme;
/**
* A thread that could be told that it is finished. This state should stay the same, and should not be cleared like it is done with the interrupt state.
*
* @author reichelt
*
*/
public class FinishableThread extends Thread {
private final Finishable finishable;
public FinishableThread(final ThreadGroup experimentThreadGroup, final Finishable finishable, final String name) {
super(experimentThreadGroup, finishable, name);
this.finishable = finishable;
}
public boolean isFinished() {
return finishable.isFinished();
}
public void setFinished(final boolean isFinished) {
finishable.setFinished(isFinished);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy