congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
EffectiveEntitlementInternalEvent
Code IndexAdd Tabnine to your IDE (free)

How to use
EffectiveEntitlementInternalEvent
in
com.ning.billing.events

Best Java code snippets using com.ning.billing.events.EffectiveEntitlementInternalEvent (Showing top 2 results out of 315)

origin: com.ning.billing/killbill-invoice

@Subscribe
public void handleEntitlementTransition(final EffectiveEntitlementInternalEvent event) {
  try {
    final InternalCallContext context = internalCallContextFactory.createInternalCallContext(event.getSearchKey2(), event.getSearchKey1(), "SubscriptionBaseTransition", CallOrigin.INTERNAL, UserType.SYSTEM, event.getUserToken());
    dispatcher.processAccount(event.getAccountId(), event.getEffectiveTransitionTime(), false, context);
  } catch (InvoiceApiException e) {
    log.error(e.getMessage());
  }
}
origin: com.ning.billing/killbill-util

@Subscribe
public void handleEntitlementEvents(final EffectiveEntitlementInternalEvent eventEffective) {
  log.info(String.format("Got entitlement event %s", eventEffective.toString()));
  switch (eventEffective.getTransitionType()) {
    case BLOCK_BUNDLE:
      assertEqualsNicely(NextEvent.PAUSE);
      notifyIfStackEmpty();
      break;
    case UNBLOCK_BUNDLE:
      assertEqualsNicely(NextEvent.RESUME);
      notifyIfStackEmpty();
      break;
  }
}
com.ning.billing.eventsEffectiveEntitlementInternalEvent

Most used methods

  • getAccountId
  • getEffectiveTransitionTime
  • getSearchKey1
  • getSearchKey2
  • getTransitionType
  • getUserToken

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Notification (javax.management)
  • JTextField (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now