ExtractorProcessor is an EntryProcessor implementation that extracts a value from an object cached a NamedMap. A common usage pattern is:

  cache.invoke(oKey, new ExtractorProcessor(extractor));

For clustered caches using the ExtractorProcessor could significantly reduce the amount of network traffic.

Hierarchy

Constructors

Properties

Methods

Constructors

  • Construct an ExtractorProcessor using the given extractor or method name.

    Parameters

    • extractorOrMethod: undefined | string | ValueExtractor

      the extractor.ValueExtractor to use by this filter or the name of the method to invoke via reflection

    Returns ExtractorProcessor

Properties

@class: string
extractor: ValueExtractor

The underlying value extractor.

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<any, any, any>