Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-254

Implementation for offerNotification method with timeout in DOMNotificationRouter

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    Description

      @Override
      public ListenableFuture<?> offerNotification(final DOMNotification notification, final long timeout,
      final TimeUnit unit) throws InterruptedException {
      final Collection<ListenerRegistration<? extends DOMNotificationListener>> subscribers = listeners.get(notification.getType());
      if (subscribers.isEmpty())

      { return NO_LISTENERS; }

      // Attempt to perform a non-blocking publish first
      final ListenableFuture<?> noBlock = tryPublish(notification, subscribers);
      if (!DOMNotificationPublishService.REJECTED.equals(noBlock))

      { return noBlock; }

      /*

      • FIXME: we need a background thread, which will watch out for blocking too long. Here
      • we will arm a tasklet for it and synchronize delivery of interrupt properly.
        */
        throw new UnsupportedOperationException("Not implemented yet");

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            chen.mingling@zte.com.cn MerlinChan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: