class NotificationServiceImpl extends java.lang.Object implements NotificationService
Modifier and Type | Field and Description |
---|---|
private static org.springframework.data.domain.Sort |
DEFAULT_SORTING |
private javax.inject.Provider<EventRepository> |
eventRepoProvider |
private static org.slf4j.Logger |
LOGGER |
private javax.inject.Provider<NotificationRepository> |
notifRepoProvider |
private static org.springframework.data.domain.Pageable |
SELECT_PAGE |
private WebhookService |
webhookService |
Constructor and Description |
---|
NotificationServiceImpl(WebhookService webhookService,
javax.inject.Provider<NotificationRepository> notificatioRepoProvider,
javax.inject.Provider<EventRepository> eventRepoProvider) |
Modifier and Type | Method and Description |
---|---|
NotificationEntity |
completed(NotificationEntity notification) |
NotificationEntity |
fail(NotificationEntity notification) |
boolean |
hasEquivalentNotificationScheduledAlready(EventEntity event,
WebhookEntity w) |
void |
process(EventEntity event) |
NotificationEntity |
reschedule(NotificationEntity notification) |
java.util.List<NotificationEntity> |
select() |
private static final org.slf4j.Logger LOGGER
private static final org.springframework.data.domain.Sort DEFAULT_SORTING
private static final org.springframework.data.domain.Pageable SELECT_PAGE
private final WebhookService webhookService
private final javax.inject.Provider<NotificationRepository> notifRepoProvider
private final javax.inject.Provider<EventRepository> eventRepoProvider
@Inject public NotificationServiceImpl(WebhookService webhookService, javax.inject.Provider<NotificationRepository> notificatioRepoProvider, javax.inject.Provider<EventRepository> eventRepoProvider)
public void process(EventEntity event)
process
in interface NotificationService
public boolean hasEquivalentNotificationScheduledAlready(EventEntity event, WebhookEntity w)
public java.util.List<NotificationEntity> select()
select
in interface NotificationService
public NotificationEntity completed(NotificationEntity notification)
completed
in interface NotificationService
public NotificationEntity fail(NotificationEntity notification)
fail
in interface NotificationService
public NotificationEntity reschedule(NotificationEntity notification)
reschedule
in interface NotificationService