Interface UsageEventStore


public interface UsageEventStore
  • Method Summary

    Modifier and Type
    Method
    Description
    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
  • 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 context
      endDate - End date for the usage event
      usageType - Usage event type i.e. OVER_FIFTY, OVER_NINETY, OVER_ONE_HUNDRED
      Returns:
      True if this is the event marked as published, otherwise false