Class ActivityResourcePermissions

    • Field Detail

      • NO_SPECIFIC_CORE_REQUIREMENTS

        public static final int NO_SPECIFIC_CORE_REQUIREMENTS
        Default core requirements (system doesn't control the number of used cores)
        See Also:
        Constant Field Values
    • Constructor Detail

      • ActivityResourcePermissions

        public ActivityResourcePermissions​(int cores,
                                           SystemLoadState loadState)
        Constructs resource permissions
        Parameters:
        cores - The number of cores. Could be positive or NO_SPECIFIC_CORE_REQUIREMENTS
        loadState - The last load state. May not be null
      • ActivityResourcePermissions

        public ActivityResourcePermissions​(SystemLoadState loadState)
        Constructs resource permissions
        Parameters:
        loadState - The last load state. May not be null
    • Method Detail

      • getCores

        public int getCores()
        Gets the number of cores available for the target activity.
        Returns:
        the cores The number of cores permitted for usage.
      • getLoadState

        public SystemLoadState getLoadState()
        Gets the last load state of the system
        Returns:
        The last load state of the system. May not be null