ConditionalProcessorrepresents a processor that is invoked conditionally based on the result of an entry evaluation. AConditionalProcessoris returned from thewhen()` function, which takes a filter as its argument.

Type Parameters

  • K = any

    the type of the Map entry key

  • V = any

    the type of the Map entry value

  • R = any

    the type of value returned by the EntryProcessor

Hierarchy

Constructors

Properties

Methods

Constructors

  • Construct a ConditionalProcessor for the specified filter and the processor.

    The specified entry processor gets invoked if and only if the filter applied to the cache entry evaluates to true; otherwise the result of the invocation will return null.

    Type Parameters

    • K = any

    • V = any

    • R = any

    Parameters

    Returns ConditionalProcessor<K, V, R>

Properties

@class: string
filter: Filter

The underlying filter.

processor: EntryProcessor<K, V, R>

The underlying entry processor.

Methods

  • Returns a ConditionalProcessor comprised of this processor and the provided filter.

    The specified entry processor gets invoked if and only if the filter applied to the entry evaluates to true; otherwise the result of the invocation will return null.

    Parameters

    Returns EntryProcessor<K, V, R>