public class BindingDOMNotificationPublishServiceAdapter extends Object implements NotificationPublishService
Modifier and Type | Class and Description |
---|---|
protected static class |
BindingDOMNotificationPublishServiceAdapter.Builder |
REJECTED
Constructor and Description |
---|
BindingDOMNotificationPublishServiceAdapter(BindingToNormalizedNodeCodec codec,
DOMNotificationPublishService domPublishService)
Deprecated.
|
BindingDOMNotificationPublishServiceAdapter(DOMNotificationPublishService domPublishService,
BindingToNormalizedNodeCodec codec) |
Modifier and Type | Method and Description |
---|---|
protected BindingToNormalizedNodeCodec |
getCodec() |
BindingToNormalizedNodeCodec |
getCodecRegistry() |
T |
getDelegate() |
DOMNotificationPublishService |
getDomPublishService() |
com.google.common.util.concurrent.ListenableFuture<? extends Object> |
offerNotification(Notification notification)
Publishes a notification to subscribed listeners.
|
com.google.common.util.concurrent.ListenableFuture<? extends Object> |
offerNotification(Notification notification,
int timeout,
TimeUnit unit)
Publishes a notification to subscribed listeners.
|
void |
putNotification(Notification notification)
Publishes a notification to subscribed listeners.
|
public BindingDOMNotificationPublishServiceAdapter(DOMNotificationPublishService domPublishService, BindingToNormalizedNodeCodec codec)
@Deprecated public BindingDOMNotificationPublishServiceAdapter(BindingToNormalizedNodeCodec codec, DOMNotificationPublishService domPublishService)
public BindingToNormalizedNodeCodec getCodecRegistry()
public DOMNotificationPublishService getDomPublishService()
public void putNotification(Notification notification) throws InterruptedException
NotificationPublishService
putNotification
in interface NotificationPublishService
notification
- the notification to publish.InterruptedException
- if interrupted while waitingpublic com.google.common.util.concurrent.ListenableFuture<? extends Object> offerNotification(Notification notification)
NotificationPublishService
Still guaranteed not to block. Returns Listenable Future which will complete once.
offerNotification
in interface NotificationPublishService
notification
- the notification to publish.NotificationPublishService.REJECTED
if
resource constraints preventpublic com.google.common.util.concurrent.ListenableFuture<? extends Object> offerNotification(Notification notification, int timeout, TimeUnit unit) throws InterruptedException
NotificationPublishService
offerNotification
in interface NotificationPublishService
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 parameterNotificationPublishService.REJECTED
if
resource constraints preventInterruptedException
- if interrupted while waitingpublic final T getDelegate()
getDelegate
in interface org.opendaylight.yangtools.concepts.Delegator<T>
protected final BindingToNormalizedNodeCodec getCodec()
Copyright © 2019 OpenDaylight. All rights reserved.