Interface Predicate


  • @SupportedAll
    public interface Predicate

    An interface for a basic, stand-alone predicate which can be evaluated given some JsonValue input and serialized for storage.

    Predicates are evaluated by the PushMessageResource once a response has been received by an appropriate endpoint but before that response is delivered back to the processing module.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String jsonify()
      Returns a jsonified representation of this object to be used when tranmitting across cluster.
      boolean perform​(JsonValue content)
      Execute the predicate against the given Json content and return the predicate's success/failure.
    • Method Detail

      • perform

        boolean perform​(JsonValue content)
        Execute the predicate against the given Json content and return the predicate's success/failure.
        Parameters:
        content - against which the predicate can be performed.
        Returns:
        whether the predicate passed or not.
      • jsonify

        String jsonify()
        Returns a jsonified representation of this object to be used when tranmitting across cluster.
        Returns:
        A jsonified representation of this class instance.