Tabnine Logo
NotificationQueueConfig.getTableName
Code IndexAdd Tabnine to your IDE (free)

How to use
getTableName
method
in
com.ning.billing.notificationq.api.NotificationQueueConfig

Best Java code snippets using com.ning.billing.notificationq.api.NotificationQueueConfig.getTableName (Showing top 7 results out of 315)

origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public int getReadyNotificationEntriesForSearchKey1(Long searchKey1) {
  return ((NotificationSqlDao) dao.getSqlDao()).getCountReadyEntries(searchKey1, clock.getUTCNow().toDate(), config.getTableName(), "search_key1");
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public int getReadyNotificationEntriesForSearchKey2(Long searchKey2) {
  return ((NotificationSqlDao) dao.getSqlDao()).getCountReadyEntries(searchKey2, clock.getUTCNow().toDate(), config.getTableName(), "search_key2");
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

this.nbProcessedEvents = new AtomicLong();
final NotificationSqlDao sqlDao = (dbi != null) ? dbi.onDemand(NotificationSqlDao.class) : null;
this.dao = new DBBackedQueue<NotificationEventModelDao>(clock, sqlDao, config, "notif-" + config.getTableName(), metricRegistry);
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public void removeNotificationFromTransaction(final Transmogrifier transmogrifier, final Long recordId) {
  final NotificationSqlDao transactional = transmogrifier.become(NotificationSqlDao.class);
  final NotificationEventModelDao existing = transactional.getByRecordId(recordId, config.getTableName());
  final NotificationEventModelDao removedEntry = new NotificationEventModelDao(existing, Hostname.get(), clock.getUTCNow(), PersistentQueueEntryLifecycleState.REMOVED);
  dao.moveEntryToHistoryFromTransaction(transactional, removedEntry);
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
public void removeNotification(final Long recordId) {
  final NotificationEventModelDao existing = dao.getSqlDao().getByRecordId(recordId, config.getTableName());
  final NotificationEventModelDao removedEntry = new NotificationEventModelDao(existing, Hostname.get(), clock.getUTCNow(), PersistentQueueEntryLifecycleState.REMOVED);
  dao.moveEntryToHistory(removedEntry);
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

private <T extends NotificationEvent> List<NotificationEventWithMetadata<T>> getFutureNotificationsInternal(final Class<T> typeX, final NotificationSqlDao transactionalDao, final String searchKey, final Long searchKeyValue) {
  final List<NotificationEventWithMetadata<T>> result = new LinkedList<NotificationEventWithMetadata<T>>();
  final List<NotificationEventModelDao> entries = transactionalDao.getReadyQueueEntriesForSearchKey(getFullQName(), searchKeyValue, config.getTableName(), searchKey);
  for (NotificationEventModelDao cur : entries) {
    final T event = (T) DefaultQueueLifecycle.deserializeEvent(cur.getClassName(), objectMapper, cur.getEventJson());
    final NotificationEventWithMetadata<T> foo = new NotificationEventWithMetadata<T>(cur.getRecordId(), cur.getUserToken(), cur.getCreatedDate(), cur.getSearchKey1(), cur.getSearchKey2(), event,
                                             cur.getFutureUserToken(), cur.getEffectiveDate(), cur.getQueueName());
    result.add(foo);
  }
  return result;
}
origin: com.ning.billing.commons/killbill-queue

                                UUID.randomUUID(), effDt, "testBasic");
dao.insertEntry(notif, notificationQueueConfig.getTableName());
final List<NotificationEventModelDao> notifications = dao.getReadyEntries(now.toDate(), hostname, 3, notificationQueueConfig.getTableName());
assertNotNull(notifications);
assertEquals(notifications.size(), 1);
final int res = dao.claimEntry(notification.getRecordId(), now.toDate(), ownerId, nextAvailable.toDate(),  notificationQueueConfig.getTableName());
assertEquals(res, 1);
dao.claimEntry(notification.getRecordId(), now.toDate(),  ownerId, nextAvailable.toDate(), notificationQueueConfig.getTableName());
notification = dao.getByRecordId(notification.getRecordId(), notificationQueueConfig.getTableName());
assertEquals(notification.getEventJson(), eventJson);
validateDate(notification.getEffectiveDate(), effDt);
validateDate(notificationHistory.getNextAvailableDate(), processedTime);
dao.removeEntry(notification.getRecordId(), notificationQueueConfig.getTableName());
notification = dao.getByRecordId(notification.getRecordId(), notificationQueueConfig.getTableName());
assertNull(notification);
com.ning.billing.notificationq.apiNotificationQueueConfiggetTableName

Popular methods of NotificationQueueConfig

  • getHistoryTableName
  • getMaxFailureRetries
  • getNbThreads
  • isProcessingOff

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • CodeWhisperer alternatives
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