Interface UsageEventStore
public interface UsageEventStore
-
Method Summary
Modifier and TypeMethodDescriptionboolean
markEventPublished
(TenantContext tenantContext, LocalDate endDate, AutomationEventType usageType) Attempts to mark the event as published, this will only return true if it's the first event for the combination of the tenant, usage type, and end date for the usage event
-
Method Details
-
markEventPublished
boolean markEventPublished(TenantContext tenantContext, LocalDate endDate, AutomationEventType usageType) Attempts to mark the event as published, this will only return true if it's the first event for the combination of the tenant, usage type, and end date for the usage event- Parameters:
tenantContext
- Tenant contextendDate
- End date for the usage eventusageType
- Usage event type i.e. OVER_FIFTY, OVER_NINETY, OVER_ONE_HUNDRED- Returns:
- True if this is the event marked as published, otherwise false
-