An entry processor that invokes the specified method on a value of a cache entry and optionally updates the entry with a modified value.

Hierarchy

Constructors

Properties

Methods

Constructors

  • Construct MethodInvocationProcessor instance.

    Parameters

    • methodName: string

      the name of the method to invoke

    • mutator: boolean

      the flag specifying whether the method mutates the state of a target object, which implies that the entry value should be updated after method invocation

    • args: any[] = []

      the method arguments

    Returns MethodInvocationProcessor

Properties

@class: string
args: any[]

Method arguments.

methodName: string

The name of the method to invoke.

mutator: boolean

A flag specifying whether the method mutates the state of a target object.

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>