Class StaticReplication


  • public class StaticReplication
    extends Replication
    Represents a Replication strategy that deploys a consistent number of replicas.
         {
                    "type": "static",
                    "amount": 20
         }
     
    • Constructor Summary

      Constructors 
      Constructor Description
      StaticReplication​(java.lang.String type, java.lang.Integer amount)
      Create a StaticReplication
    • Constructor Detail

      • StaticReplication

        @Contract(pure=true)
        public StaticReplication​(java.lang.String type,
                                 java.lang.Integer amount)
        Create a StaticReplication
        Parameters:
        type - the type of replication (static)
        amount - the amount of replicas
    • Method Detail

      • getAmount

        public java.lang.Integer getAmount()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object