Class NamedOperationScoreResolver

    • Constructor Detail

      • NamedOperationScoreResolver

        public NamedOperationScoreResolver​(String suffixNamedOperationCacheName)
        Parameters:
        suffixNamedOperationCacheName - the suffix of NamedOperationCache to score against.
      • NamedOperationScoreResolver

        public NamedOperationScoreResolver​(NamedOperationCache cache)
    • Method Detail

      • getSuffixCacheName

        public String getSuffixCacheName()
      • getScore

        public Integer getScore​(NamedOperation operation)
        Description copied from interface: ScoreResolver
        Should return a (nullable) score for a given operation.
        Specified by:
        getScore in interface ScoreResolver<NamedOperation>
        Parameters:
        operation - the provided operation for which the score should be resolved
        Returns:
        the score for the operation, otherwise null if not found
      • getScore

        public Integer getScore​(NamedOperation operation,
                                ScoreResolver defaultScoreResolver)
        Description copied from interface: ScoreResolver
        Should return a (nullable) score for a given operation.
        Specified by:
        getScore in interface ScoreResolver<NamedOperation>
        Parameters:
        operation - the provided operation for which the score should be resolved
        defaultScoreResolver - the default score resolver to look up scores for nested operations
        Returns:
        the score for the operation, otherwise null if not found