congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RecordIdApi
Code IndexAdd Tabnine to your IDE (free)

How to use
RecordIdApi
in
com.ning.billing.util.api

Best Java code snippets using com.ning.billing.util.api.RecordIdApi (Showing top 1 results out of 315)

origin: com.ning.billing/killbill-jaxrs

private void waitForNotificationToComplete(final HttpServletRequest request, final Long timeoutSec) {
  final TenantContext tenantContext = context.createContext(request);
  final Long tenantRecordId = recordIdApi.getRecordId(tenantContext.getTenantId(), ObjectType.TENANT, tenantContext);
  final List<NotificationQueue> queues = notificationQueueService.getNotificationQueues();
  int nbTryLeft = timeoutSec != null ? timeoutSec.intValue() : 0;
  try {
    boolean areAllNotificationsProcessed = false;
    while (!areAllNotificationsProcessed && nbTryLeft > 0) {
      areAllNotificationsProcessed = areAllNotificationsProcessed(queues, tenantRecordId);
      if (!areAllNotificationsProcessed) {
        Thread.sleep(MILLIS_IN_SEC);
        nbTryLeft--;
      }
    }
    ;
  } catch (InterruptedException ignore) {
  }
}
com.ning.billing.util.apiRecordIdApi

Most used methods

  • getRecordId
    This can be used by external plugins to keep the mapping between UUID and recordId

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JOptionPane (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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