Class DemoDiagnosisKeyBundler
- java.lang.Object
-
- app.coronawarn.server.services.distribution.assembly.diagnosiskeys.DiagnosisKeyBundler
-
- app.coronawarn.server.services.distribution.assembly.diagnosiskeys.DemoDiagnosisKeyBundler
-
@Profile("demo") @Component public class DemoDiagnosisKeyBundler extends DiagnosisKeyBundler
An instance of this class contains a collection ofDiagnosisKeys
, that will be distributed in the same hour they have been submitted.
-
-
Field Summary
-
Fields inherited from class app.coronawarn.server.services.distribution.assembly.diagnosiskeys.DiagnosisKeyBundler
distributableDiagnosisKeys, distributionTime, expiryPolicyMinutes, minNumberOfKeysPerBundle, ONE_HOUR_INTERVAL_SECONDS, TEN_MINUTES_INTERVAL_SECONDS
-
-
Constructor Summary
Constructors Constructor Description DemoDiagnosisKeyBundler(DistributionServiceConfig distributionServiceConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createDiagnosisKeyDistributionMap(Collection<DiagnosisKey> diagnosisKeys)
Initializes the internaldistributableDiagnosisKeys
map, grouping the diagnosis keys by the submission timestamp, thus ignoring the expiry and shifting policies.-
Methods inherited from class app.coronawarn.server.services.distribution.assembly.diagnosiskeys.DiagnosisKeyBundler
getAllDiagnosisKeys, getDatesWithDistributableDiagnosisKeys, getDiagnosisKeysForDate, getDiagnosisKeysForHour, getDistributionTime, getHoursWithDistributableDiagnosisKeys, getLocalDateTimeFromHoursSinceEpoch, getSubmissionDateTime, numberOfKeysForDateBelowMaximum, setDiagnosisKeys
-
-
-
-
Constructor Detail
-
DemoDiagnosisKeyBundler
public DemoDiagnosisKeyBundler(DistributionServiceConfig distributionServiceConfig)
-
-
Method Detail
-
createDiagnosisKeyDistributionMap
protected void createDiagnosisKeyDistributionMap(Collection<DiagnosisKey> diagnosisKeys)
Initializes the internaldistributableDiagnosisKeys
map, grouping the diagnosis keys by the submission timestamp, thus ignoring the expiry and shifting policies.- Specified by:
createDiagnosisKeyDistributionMap
in classDiagnosisKeyBundler
-
-