Class BindingDOMNotificationPublishServiceAdapter
- java.lang.Object
-
- org.opendaylight.controller.md.sal.binding.impl.BindingDOMNotificationPublishServiceAdapter
-
- All Implemented Interfaces:
AutoCloseable
,BindingService
,NotificationPublishService
,BindingAwareService
@Deprecated(forRemoval=true) public class BindingDOMNotificationPublishServiceAdapter extends Object implements NotificationPublishService, AutoCloseable
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
BindingDOMNotificationPublishServiceAdapter.Builder
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
-
Fields inherited from interface org.opendaylight.controller.md.sal.binding.api.NotificationPublishService
REJECTED
-
-
Constructor Summary
Constructors Constructor Description BindingDOMNotificationPublishServiceAdapter(BindingToNormalizedNodeCodec codec, DOMNotificationPublishService domPublishService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated, for removal: This API element is subject to removal in a future version.BindingToNormalizedNodeCodec
getCodecRegistry()
Deprecated, for removal: This API element is subject to removal in a future version.DOMNotificationPublishService
getDomPublishService()
Deprecated, for removal: This API element is subject to removal in a future version.ListenableFuture<?>
offerNotification(Notification notification)
Deprecated, for removal: This API element is subject to removal in a future version.Publishes a notification to subscribed listeners.ListenableFuture<?>
offerNotification(Notification notification, int timeout, TimeUnit unit)
Deprecated, for removal: This API element is subject to removal in a future version.Publishes a notification to subscribed listeners.void
putNotification(Notification notification)
Deprecated, for removal: This API element is subject to removal in a future version.Publishes a notification to subscribed listeners.
-
-
-
Constructor Detail
-
BindingDOMNotificationPublishServiceAdapter
public BindingDOMNotificationPublishServiceAdapter(BindingToNormalizedNodeCodec codec, DOMNotificationPublishService domPublishService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
getCodecRegistry
public BindingToNormalizedNodeCodec getCodecRegistry()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getDomPublishService
public DOMNotificationPublishService getDomPublishService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
putNotification
public void putNotification(Notification notification) throws InterruptedException
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:NotificationPublishService
Publishes a notification to subscribed listeners. This initiates the process of sending the notification, but delivery to the listeners can happen asynchronously, potentially after a call to this method returns. Note: This call will block when the notification queue is full.- Specified by:
putNotification
in interfaceNotificationPublishService
- Parameters:
notification
- the notification to publish.- Throws:
InterruptedException
- if interrupted while waiting
-
offerNotification
public ListenableFuture<?> offerNotification(Notification notification)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:NotificationPublishService
Publishes a notification to subscribed listeners. This initiates the process of sending the notification, but delivery to the listeners can happen asynchronously, potentially after a call to this method returns.Still guaranteed not to block. Returns Listenable Future which will complete once.
- Specified by:
offerNotification
in interfaceNotificationPublishService
- Parameters:
notification
- the notification to publish.- Returns:
- A listenable future which will report completion when the service has finished
propagating the notification to its immediate registrants, or
NotificationPublishService.REJECTED
if resource constraints prevent
-
offerNotification
public ListenableFuture<?> offerNotification(Notification notification, int timeout, TimeUnit unit) throws InterruptedException
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:NotificationPublishService
Publishes a notification to subscribed listeners. This initiates the process of sending the notification, but delivery to the listeners can happen asynchronously, potentially after a call to this method returns. This method is guaranteed not to block more than the specified timeout.- Specified by:
offerNotification
in interfaceNotificationPublishService
- Parameters:
notification
- the notification to publish.timeout
- how long to wait before giving up, in units of unitunit
- a TimeUnit determining how to interpret the timeout parameter- Returns:
- A listenable future which will report completion when the service has finished
propagating the notification to its immediate registrants, or
NotificationPublishService.REJECTED
if resource constraints prevent - Throws:
InterruptedException
- if interrupted while waiting
-
close
public void close()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
close
in interfaceAutoCloseable
-
-