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 classBindingDOMNotificationPublishServiceAdapter.BuilderDeprecated, 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 voidclose()Deprecated, for removal: This API element is subject to removal in a future version.BindingToNormalizedNodeCodecgetCodecRegistry()Deprecated, for removal: This API element is subject to removal in a future version.DOMNotificationPublishServicegetDomPublishService()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.voidputNotification(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:NotificationPublishServicePublishes 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:
putNotificationin 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:NotificationPublishServicePublishes 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:
offerNotificationin 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.REJECTEDif 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:NotificationPublishServicePublishes 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:
offerNotificationin 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.REJECTEDif 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:
closein interfaceAutoCloseable
-
-