Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MethodInvocationProcessor

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

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • 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

    • Default value args: any[] = []

      the method arguments

    Returns MethodInvocationProcessor

Properties

@class

@class: string

args

args: Array<any>

Method arguments.

methodName

methodName: string

The name of the method to invoke.

mutator

mutator: boolean

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

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>