Class ResourceQuota


  • public class ResourceQuota
    extends JsonRepresentable
    Represents the resource quote for a pod
         {
             "memory": 512000000,
             "swap": 0,
             "nanocpu": 100000000
         }
     
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceQuota​(java.lang.Long memory, java.lang.Long swap, java.lang.Long nanocpu)  
    • Constructor Detail

      • ResourceQuota

        @Contract(pure=true)
        public ResourceQuota​(java.lang.Long memory,
                             java.lang.Long swap,
                             java.lang.Long nanocpu)
        Parameters:
        memory - the memory limit (bytes)
        swap - the swap limit (bytes)
        nanocpu - how many nano cpus to assign
    • Method Detail

      • getMemory

        public java.lang.Long getMemory()
      • getSwap

        public java.lang.Long getSwap()
      • getNanocpu

        public java.lang.Long getNanocpu()
      • 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