public class BlockingCalculator extends Object
| Constructor and Description |
|---|
BlockingCalculator(BlockingInternalApi blockingApi,
CatalogService catalogService) |
@Inject public BlockingCalculator(BlockingInternalApi blockingApi, CatalogService catalogService)
public boolean insertBlockingEvents(SortedSet<BillingEvent> billingEvents, Set<UUID> skippedSubscriptions, InternalTenantContext context) throws CatalogApiException
billingEvents - the original list of billing events to update (without overdue events)CatalogApiExceptionprotected SortedSet<BillingEvent> eventsToRemove(List<org.killbill.billing.junction.plumbing.billing.DisabledDuration> disabledDuration, SortedSet<BillingEvent> subscriptionBillingEvents)
protected SortedSet<BillingEvent> createNewEvents(List<org.killbill.billing.junction.plumbing.billing.DisabledDuration> disabledDuration, SortedSet<BillingEvent> subscriptionBillingEvents, InternalTenantContext context) throws CatalogApiException
CatalogApiExceptionprotected BillingEvent precedingBillingEventForSubscription(org.joda.time.DateTime disabledDurationStart, SortedSet<BillingEvent> subscriptionBillingEvents)
protected SortedSet<BillingEvent> filter(SortedSet<BillingEvent> billingEvents, SubscriptionBase subscription)
protected BillingEvent createNewDisableEvent(org.joda.time.DateTime disabledDurationStart, BillingEvent previousEvent, Catalog catalog) throws CatalogApiException
CatalogApiExceptionprotected BillingEvent createNewReenableEvent(org.joda.time.DateTime odEventTime, BillingEvent previousEvent, Catalog catalog, InternalTenantContext context) throws CatalogApiException
CatalogApiExceptionprotected Hashtable<UUID,List<SubscriptionBase>> createBundleSubscriptionMap(SortedSet<BillingEvent> billingEvents)
protected List<org.killbill.billing.junction.plumbing.billing.DisabledDuration> createBlockingDurations(Iterable<BlockingState> inputBundleEvents)
Copyright © 2010-2017. All Rights Reserved.