Class BaseJpaNotificationStateRepository

    • Constructor Detail

      • BaseJpaNotificationStateRepository

        public BaseJpaNotificationStateRepository()
      • BaseJpaNotificationStateRepository

        public BaseJpaNotificationStateRepository​(javax.persistence.EntityManager em)
    • Method Detail

      • setNotificationAcknowledged

        @Transactional(propagation=REQUIRES_NEW)
        public boolean setNotificationAcknowledged​(@NonNull
                                                   Object nativeId,
                                                   @NonNull
                                                   String messageType,
                                                   int attemptCount,
                                                   @NonNull
                                                   Class<?> entityType)
      • setFailedNotificationAttempt

        @Transactional(propagation=REQUIRES_NEW)
        public boolean setFailedNotificationAttempt​(@NonNull
                                                    Object nativeId,
                                                    @NonNull
                                                    String messageType,
                                                    int attemptCount,
                                                    @NonNull
                                                    Instant nextAttempt,
                                                    @NonNull
                                                    Class<?> entityType,
                                                    boolean stopped)
      • getEntityTypes

        protected List<String> getEntityTypes​(@NonNull
                                              @NonNull Class<?> entityType)
        Gather list relevant class names, including the provided class & its super class
        Parameters:
        entityType - the starting class whose name & super class's name should be gathered
        Returns:
        the list relevant class names
      • findNotificationReadyMembers

        @NonNull
        public Stream<com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware> findNotificationReadyMembers​(@Nullable
                                                                                                                                      Object lastProcessedNativeId,
                                                                                                                                      int pageSize,
                                                                                                                                      @NonNull
                                                                                                                                      String messageType,
                                                                                                                                      @NonNull
                                                                                                                                      Duration faultThreshold,
                                                                                                                                      @NonNull
                                                                                                                                      Class<?> entityType)
      • getPolyMorphicVariations

        protected List<String> getPolyMorphicVariations​(Class<?> entityType)
      • getEntityManager

        public javax.persistence.EntityManager getEntityManager()