public class RestListenableEventStreamContext<L extends org.opendaylight.yangtools.yang.binding.NotificationListener> extends Object implements org.opendaylight.yangtools.restconf.client.api.event.ListenableEventStreamContext, org.opendaylight.yangtools.websocket.client.callback.ClientMessageCallback
| Constructor and Description |
|---|
RestListenableEventStreamContext(org.opendaylight.yangtools.restconf.client.api.event.EventStreamInfo streamInfo,
RestconfClientImpl restconfClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.google.common.util.concurrent.ListenableFuture<com.google.common.base.Optional<org.opendaylight.yangtools.restconf.client.api.event.EventStreamReplay>> |
getReplay(com.google.common.base.Optional<Date> startTime,
com.google.common.base.Optional<Date> endTime) |
void |
onMessageReceived(Object message) |
<T extends org.opendaylight.yangtools.yang.binding.NotificationListener> |
registerNotificationListener(T listener) |
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<Void>> |
startListening() |
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<Void>> |
startListeningWithReplay(com.google.common.base.Optional<Date> startTime,
com.google.common.base.Optional<Date> endTime) |
void |
stopListening() |
public RestListenableEventStreamContext(org.opendaylight.yangtools.restconf.client.api.event.EventStreamInfo streamInfo,
RestconfClientImpl restconfClient)
public <T extends org.opendaylight.yangtools.yang.binding.NotificationListener> org.opendaylight.yangtools.concepts.ListenerRegistration<T> registerNotificationListener(T listener)
registerNotificationListener in interface org.opendaylight.yangtools.restconf.client.api.event.ListenableEventStreamContextpublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<Void>> startListening()
startListening in interface org.opendaylight.yangtools.restconf.client.api.event.ListenableEventStreamContextpublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<Void>> startListeningWithReplay(com.google.common.base.Optional<Date> startTime, com.google.common.base.Optional<Date> endTime)
startListeningWithReplay in interface org.opendaylight.yangtools.restconf.client.api.event.ListenableEventStreamContextpublic void stopListening()
stopListening in interface org.opendaylight.yangtools.restconf.client.api.event.ListenableEventStreamContextpublic com.google.common.util.concurrent.ListenableFuture<com.google.common.base.Optional<org.opendaylight.yangtools.restconf.client.api.event.EventStreamReplay>> getReplay(com.google.common.base.Optional<Date> startTime, com.google.common.base.Optional<Date> endTime)
getReplay in interface org.opendaylight.yangtools.restconf.client.api.event.EventStreamContextpublic void close()
close in interface AutoCloseableclose in interface org.opendaylight.yangtools.restconf.client.api.event.EventStreamContextpublic void onMessageReceived(Object message)
onMessageReceived in interface org.opendaylight.yangtools.websocket.client.callback.ClientMessageCallbackCopyright © 2015. All rights reserved.