Class DiagnosisKeyBundler

    • Field Detail

      • ONE_HOUR_INTERVAL_SECONDS

        public static final long ONE_HOUR_INTERVAL_SECONDS
        The submission timestamp is counted in 1 hour intervals since epoch.
      • TEN_MINUTES_INTERVAL_SECONDS

        public static final long TEN_MINUTES_INTERVAL_SECONDS
        The rolling start interval number is counted in 10 minute intervals since epoch.
      • expiryPolicyMinutes

        protected final long expiryPolicyMinutes
      • minNumberOfKeysPerBundle

        protected final int minNumberOfKeysPerBundle
      • supportedCountries

        protected final List<String> supportedCountries
      • distributionTime

        protected LocalDateTime distributionTime
        The hour at which the distribution runs. This field is needed to prevent the run from distributing any keys that have already been submitted but may only be distributed in the future (e.g. because they are not expired yet).
      • distributableDiagnosisKeys

        protected final Map<String,​Map<LocalDateTime,​List<DiagnosisKey>>> distributableDiagnosisKeys
        A map containing diagnosis keys, grouped by country and mapped by the LocalDateTime on which they may be distributed.
    • Constructor Detail

      • DiagnosisKeyBundler

        public DiagnosisKeyBundler​(DistributionServiceConfig distributionServiceConfig)
        Constructs a DiagnosisKeyBundler based on the specified service configuration.