@Deprecated
public class Publisher
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Publisher.AsyncNotificationCallback
Deprecated.
A callback interface for asynchronous notifications.
|
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ThreadPoolExecutor |
executor
Deprecated.
|
private static org.slf4j.Logger |
LOG
Deprecated.
|
Constructor and Description |
---|
Publisher()
Deprecated.
Constructs a new publisher.
|
Publisher(java.util.concurrent.ThreadPoolExecutor executor)
Deprecated.
Constructs a new publisher with an optional ThreadPoolExector for sending updates.
|
Modifier and Type | Method and Description |
---|---|
void |
sendUpdateNotification(java.lang.String hub,
java.lang.String topic)
Deprecated.
Sends the HUB url a notification of a change in topic
|
void |
sendUpdateNotification(java.lang.String topic,
SyndFeed feed)
Deprecated.
Sends a notification for a feed located at "topic".
|
void |
sendUpdateNotification(SyndFeed feed)
Deprecated.
Sends a notification for a feed.
|
void |
sendUpdateNotificationAsyncronously(java.lang.String hub,
java.lang.String topic,
Publisher.AsyncNotificationCallback callback)
Deprecated.
Sends the HUB url a notification of a change in topic asynchronously
|
void |
sendUpdateNotificationAsyncronously(java.lang.String topic,
SyndFeed feed,
Publisher.AsyncNotificationCallback callback)
Deprecated.
Asynchronously sends a notification for a feed located at "topic".
|
void |
sendUpdateNotificationAsyncronously(SyndFeed feed,
Publisher.AsyncNotificationCallback callback)
Deprecated.
Asyncronously sends a notification for a feed.
|
private static final org.slf4j.Logger LOG
private java.util.concurrent.ThreadPoolExecutor executor
public Publisher()
public Publisher(java.util.concurrent.ThreadPoolExecutor executor)
public void sendUpdateNotification(java.lang.String hub, java.lang.String topic) throws NotificationException
hub
- URL of the hub to notify.topic
- The Topic that has changedNotificationException
- Any failurepublic void sendUpdateNotification(java.lang.String topic, SyndFeed feed) throws NotificationException
topic
- URL for the feedfeed
- The feed itselfNotificationException
- Any failurepublic void sendUpdateNotification(SyndFeed feed) throws NotificationException
feed
- The feed to notifyNotificationException
- Any failurepublic void sendUpdateNotificationAsyncronously(java.lang.String hub, java.lang.String topic, Publisher.AsyncNotificationCallback callback)
hub
- URL of the hub to notify.topic
- The Topic that has changedcallback
- A callback invoked when the notification completes.NotificationException
- Any failurepublic void sendUpdateNotificationAsyncronously(java.lang.String topic, SyndFeed feed, Publisher.AsyncNotificationCallback callback)
topic
- URL for the feedfeed
- The feed itselfcallback
- A callback invoked when the notification completes.NotificationException
- Any failurepublic void sendUpdateNotificationAsyncronously(SyndFeed feed, Publisher.AsyncNotificationCallback callback)
feed
- The feed to notifycallback
- A callback invoked when the notification completes.NotificationException
- Any failure