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

io.hyperfoil.clustering.messages.PhaseControlMessage Maven / Gradle / Ivy

There is a newer version: 0.27
Show newest version
package io.hyperfoil.clustering.messages;

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 {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy