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 |
pollNow()
Invokes the periodic processing now in the current thread.
|
void |
registerListener(Listener<SegmentNotification> listener)
Register listener for notification type T.
|
unregisterAllListeners, unregisterListenerpublic SegmentNotifier(NotificationSystem notifySystem, StateSynchronizer<io.pravega.client.stream.impl.ReaderGroupState> synchronizer, java.util.concurrent.ScheduledExecutorService executor)
public void pollNow()
public void registerListener(Listener<SegmentNotification> listener)
ObservableregisterListener 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