Codota Logo
EffectiveEntitlementInternalEvent
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • orElseThrow (Optional)
  • requestLocationUpdates (LocationManager)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now