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