public class AlertsManager extends Object
Constructor and Description |
---|
AlertsManager(com.google.common.eventbus.EventBus eventBus,
int maxTrafficStatistics,
int hitsThreshold)
Creates a new
AlertsManager . |
@Inject public AlertsManager(@NonNull com.google.common.eventbus.EventBus eventBus, int maxTrafficStatistics, int hitsThreshold)
AlertsManager
.eventBus
- The EventBus
used to publish TrafficAlert
.maxTrafficStatistics
- The maximum number of TrafficStatistic
to hold in the buffer. It is equal to the alerts monitoring
internal divided by the traffic statistics computation
interval.hitsThreshold
- The max hits by second threshold to trigger a new TrafficAlert
.Copyright © 2019. All rights reserved.