Class SegmentNotifier
- java.lang.Object
- 
- io.pravega.client.stream.notifications.notifier.AbstractNotifier<T>
- 
- io.pravega.client.stream.notifications.notifier.AbstractPollingNotifier<SegmentNotification>
- 
- io.pravega.client.stream.notifications.notifier.SegmentNotifier
 
 
 
- 
- All Implemented Interfaces:
- Observable<SegmentNotification>
 
 public class SegmentNotifier extends AbstractPollingNotifier<SegmentNotification> 
- 
- 
Field Summary- 
Fields inherited from class io.pravega.client.stream.notifications.notifier.AbstractNotifierexecutor, notifySystem
 
- 
 - 
Constructor SummaryConstructors Constructor Description SegmentNotifier(NotificationSystem notifySystem, StateSynchronizer<io.pravega.client.stream.impl.ReaderGroupState> synchronizer, java.util.concurrent.ScheduledExecutorService executor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetType()Get the notification type.voidpollNow()Invokes the periodic processing now in the current thread.voidregisterListener(Listener<SegmentNotification> listener)Register listener for notification type T.- 
Methods inherited from class io.pravega.client.stream.notifications.notifier.AbstractPollingNotifierunregisterAllListeners, unregisterListener
 
- 
 
- 
- 
- 
Constructor Detail- 
SegmentNotifierpublic SegmentNotifier(NotificationSystem notifySystem, StateSynchronizer<io.pravega.client.stream.impl.ReaderGroupState> synchronizer, java.util.concurrent.ScheduledExecutorService executor) 
 
- 
 - 
Method Detail- 
pollNowpublic void pollNow() Invokes the periodic processing now in the current thread.
 - 
registerListenerpublic void registerListener(Listener<SegmentNotification> listener) Description copied from interface:ObservableRegister listener for notification type T. Multiple listeners can be added for the same type.- Specified by:
- registerListenerin interface- Observable<SegmentNotification>
- Overrides:
- registerListenerin class- AbstractNotifier<SegmentNotification>
- Parameters:
- listener- This is the listener which will be invoked incase of an Notification.
 
 - 
getTypepublic java.lang.String getType() Description copied from interface:ObservableGet the notification type.- Returns:
- Notification type.
 
 
- 
 
-