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<NotificationRepository> |
notificatioRepoProvider |
private WebhookService |
webhookService |
Constructor and Description |
---|
NotificationServiceImpl(WebhookService webhookService,
javax.inject.Provider<NotificationRepository> notificatioRepoProvider) |
Modifier and Type | Method and Description |
---|---|
NotificationEntity |
completed(NotificationEntity notification) |
NotificationEntity |
fail(NotificationEntity notification) |
void |
notify(EventEntity event) |
NotificationEntity |
reschedule(NotificationEntity notification) |
java.util.List<NotificationEntity> |
select() |
private static final org.springframework.data.domain.Sort DEFAULT_SORTING
private final WebhookService webhookService
private final javax.inject.Provider<NotificationRepository> notificatioRepoProvider
@Inject public NotificationServiceImpl(WebhookService webhookService, javax.inject.Provider<NotificationRepository> notificatioRepoProvider)
public void notify(EventEntity event)
notify
in interface NotificationService
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