io.hyperfoil.clustering.util.PhaseControlMessage Maven / Gradle / Ivy
package io.hyperfoil.clustering.util;
import java.io.Serializable;
import io.hyperfoil.util.Immutable;
public class PhaseControlMessage implements Serializable, Immutable {
private final Command command;
private final String phase;
public PhaseControlMessage(Command command, String phase) {
this.command = command;
this.phase = phase;
}
public Command command() {
return command;
}
public String phase() {
return phase;
}
public enum Command {
RUN,
FINISH,
TRY_TERMINATE,
TERMINATE
}
public static class Codec extends ObjectCodec {}
}