public class KafkaNotificationService extends AbstractNotificationService
NotificationService.| Modifier and Type | Method and Description |
|---|---|
<N> com.google.common.util.concurrent.ListenableFuture<N> |
publish(Id.NotificationFeed feed,
N notification,
Type notificationType) |
protected void |
shutDown() |
protected void |
startUp() |
<N> Cancellable |
subscribe(Id.NotificationFeed feed,
NotificationHandler<N> handler,
Executor executor) |
createGson, getUncaughtExceptionLogger, notificationReceived, publish, subscribeexecutor, newHandleraddListener, isRunning, start, startAndWait, state, stop, stopAndWait, toStringprotected void startUp()
throws Exception
startUp in class AbstractNotificationServiceExceptionprotected void shutDown()
throws Exception
shutDown in class AbstractNotificationServiceExceptionpublic <N> com.google.common.util.concurrent.ListenableFuture<N> publish(Id.NotificationFeed feed, N notification, Type notificationType) throws NotificationException
NotificationExceptionpublic <N> Cancellable subscribe(Id.NotificationFeed feed, NotificationHandler<N> handler, Executor executor) throws NotificationFeedNotFoundException, NotificationFeedException
subscribe in interface NotificationServicesubscribe in class AbstractNotificationServiceNotificationFeedNotFoundExceptionNotificationFeedExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.