Interface Plan


  • public interface Plan
    A Plan decides two different things: - How to map from usage to a sum of money that is owed. - Limits on how much resources can be used.
    Author:
    ogronnesby
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      CostCalculator calculator()
      The calculator used to calculate a bill for usage
      java.lang.String id()
      The ID of the plan as used in APIs and storage systems
      java.lang.Object quota()
      The quota limits associated with the plan
    • Method Detail

      • id

        java.lang.String id()
        The ID of the plan as used in APIs and storage systems
      • calculator

        CostCalculator calculator()
        The calculator used to calculate a bill for usage
      • quota

        java.lang.Object quota()
        The quota limits associated with the plan