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