Interface AlertNotificationRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<AlertNotification,String>, org.springframework.data.elasticsearch.repository.ElasticsearchRepository<AlertNotification,String>, org.springframework.data.repository.PagingAndSortingRepository<AlertNotification,String>, org.springframework.data.repository.Repository<AlertNotification,String>

public interface AlertNotificationRepository extends org.springframework.data.elasticsearch.repository.ElasticsearchRepository<AlertNotification,String>
  • Method Details

    • findBySubscriptionId

      Iterable<AlertNotification> findBySubscriptionId(String subscriptionId)
    • findAll

      org.springframework.data.domain.Page<AlertNotification> findAll(org.springframework.data.domain.Pageable pageable)
      Specified by:
      findAll in interface org.springframework.data.repository.PagingAndSortingRepository<AlertNotification,String>
    • findByEventId

      org.springframework.data.domain.Page<AlertNotification> findByEventId(String topic, org.springframework.data.domain.Pageable pageable)
    • deleteByDateBefore

      long deleteByDateBefore(long date)
    • countBySubscriptionId

      long countBySubscriptionId(String subscriptionId)
    • countBySubscriptionIdAndDateAfter

      long countBySubscriptionIdAndDateAfter(String subscriptionId, long from)
    • deleteBySubscriptionId

      void deleteBySubscriptionId(String subscriptionId)
    • deleteByDateBetween

      long deleteByDateBetween(long from, long to)