[MDSAL-256] Implementation for offerNotification method with timeout in DOMNotificationRouter Created: 23/May/17  Updated: 06/Oct/20  Resolved: 06/Oct/20

Status: Resolved
Project: mdsal
Component/s: None
Affects Version/s: None
Fix Version/s: Oxygen SR4

Type: Improvement
Reporter: MerlinChan Assignee: Iaroslav Kholiavko
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All



 Description   

There should be an implementation of offerNotification method in DOMNotificationRouter class



 Comments   
Comment by MerlinChan [ 23/May/17 ]

@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");
Comment by MerlinChan [ 26/May/17 ]

I have contributed to controller project,see gerrit at:https://git.opendaylight.org/gerrit/#/c/57881/

Comment by Robert Varga [ 26/Mar/19 ]

This needs to be resurrected and migrated from the controller.

Comment by Iaroslav Kholiavko [ 06/Oct/20 ]

Looks like it is already fixed. 

Since Nitrogen it should be implemented. 

Generated at Wed Feb 07 20:09:14 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.