Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExtractorProcessor

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

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

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

    Parameters

    • extractorOrMethod: ValueExtractor | string | undefined

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

    Returns ExtractorProcessor

Properties

@class

@class: string

extractor

extractor: ValueExtractor

The underlying value extractor.

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