Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConditionalProcessor<K, V, R>

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

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • 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.

    Parameters

    Returns ConditionalProcessor

Properties

@class

@class: string

Protected filter

filter: Filter

The underlying filter.

processor

processor: EntryProcessor<K, V, R>

The underlying entry processor.

Methods

andThen

when

  • 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>