Class JohnsonEventPredicates


  • @ParametersAreNonnullByDefault
    public final class JohnsonEventPredicates
    extends Object
    Predicates relating to Johnson events.
    Since:
    6.5.0
    • Method Detail

      • blocksStartup

        public static @NonNull Predicate<com.atlassian.johnson.event.Event> blocksStartup()
        Returns a predicate that checks whether the event is sufficiently severe to prevent the product starting up.
        Returns:
        see above
      • blocksStartupButNotLicenseInconsistency

        public static @NonNull Predicate<com.atlassian.johnson.event.Event> blocksStartupButNotLicenseInconsistency()
        Returns a predicate that checks whether the event is sufficiently severe to prevent the product starting up, but not a license inconsistency error. The behaviour is similar to blocksStartup(), but this predicate excludes JohnsonEventType.LICENSE_INCONSISTENCY events.
        Returns:
        see above
      • hasLevel

        public static @NonNull Predicate<com.atlassian.johnson.event.Event> hasLevel​(JohnsonEventLevel eventLevel)
        Returns a predicate that checks whether the event has exactly the given level.
        Parameters:
        eventLevel - the level for which to check
        Returns:
        see above
      • hasType

        public static @NonNull Predicate<com.atlassian.johnson.event.Event> hasType​(JohnsonEventType eventType)
        Returns a predicate that checks whether the event has exactly the given type.
        Parameters:
        eventType - the type for which to check
        Returns:
        see above