@Service @Transactional(value="herdTransactionManager") public class NotificationMessagePublishingServiceImpl extends Object implements NotificationMessagePublishingService
| Constructor and Description |
|---|
NotificationMessagePublishingServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationMessageToDatabaseQueue(NotificationMessage notificationMessage)
Adds a notification message to the database queue.
|
protected void |
addNotificationMessageToDatabaseQueueImpl(NotificationMessage notificationMessage)
Adds a notification message to the database queue.
|
void |
publishNotificationMessage(NotificationMessage notificationMessage)
Publishes a notification message.
|
protected void |
publishNotificationMessageImpl(NotificationMessage notificationMessage)
Publishes a notification message.
|
boolean |
publishOldestNotificationMessageFromDatabaseQueue()
Publishes and removes from the database queue the oldest notification message.
|
protected boolean |
publishOldestNotificationMessageFromDatabaseQueueImpl()
Publishes and removes from the database queue the oldest notification message.
|
public NotificationMessagePublishingServiceImpl()
@Transactional(propagation=REQUIRES_NEW) public void addNotificationMessageToDatabaseQueue(NotificationMessage notificationMessage)
addNotificationMessageToDatabaseQueue in interface NotificationMessagePublishingServicenotificationMessage - the notification message@Transactional(propagation=NOT_SUPPORTED) public void publishNotificationMessage(NotificationMessage notificationMessage)
publishNotificationMessage in interface NotificationMessagePublishingServicenotificationMessage - the notification message@Transactional(propagation=REQUIRES_NEW) public boolean publishOldestNotificationMessageFromDatabaseQueue()
publishOldestNotificationMessageFromDatabaseQueue in interface NotificationMessagePublishingServiceprotected void addNotificationMessageToDatabaseQueueImpl(NotificationMessage notificationMessage)
notificationMessage - the notification messageprotected void publishNotificationMessageImpl(NotificationMessage notificationMessage)
notificationMessage - the notification messageprotected boolean publishOldestNotificationMessageFromDatabaseQueueImpl()
Copyright © 2021. All rights reserved.