public class EndOfDataNotifier extends AbstractPollingNotifier<EndOfDataNotification>
executor, notifySystem
Constructor and Description |
---|
EndOfDataNotifier(NotificationSystem notifySystem,
StateSynchronizer<io.pravega.client.stream.impl.ReaderGroupState> synchronizer,
java.util.concurrent.ScheduledExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getType()
Get the notification type.
|
void |
registerListener(Listener<EndOfDataNotification> listener)
Register listener for notification type T.
|
unregisterAllListeners, unregisterListener
public EndOfDataNotifier(NotificationSystem notifySystem, StateSynchronizer<io.pravega.client.stream.impl.ReaderGroupState> synchronizer, java.util.concurrent.ScheduledExecutorService executor)
public void registerListener(Listener<EndOfDataNotification> listener)
Observable
registerListener
in interface Observable<EndOfDataNotification>
registerListener
in class AbstractNotifier<EndOfDataNotification>
listener
- This is the listener which will be invoked incase of an Notification.public java.lang.String getType()
Observable