Static
conditionalthe type of the Map entry value
the filter to evaluate an entry
a value to update an entry with
Optional
returnValue: booleanspecifies whether the processor should return the current value in case it has not been updated
Static
conditionalConstruct a ConditionalPutAll that updates an entry with a
new value if and only if the filter applied to the entry evaluates to
true
. The new value is extracted from the specified map based on the
entry's key.
a ConditionalPutAll processor that updates an entry with a new value
if and only if the filter applied to the entry evaluates to
true
.
the type of the Map entry key
the type of the Map entry value
the filter to evaluate all supplied entries
a map of values to update entries with
Static
conditionalConstruct a ConditionalRemove processor that removes an InvocableMap
entry if and only if the filter applied to the entry evaluates to true
.
This processor may optionally return the current value as a result of
the invocation if it has not been removed (the filter evaluated to
false
).
a remove processor that removes an InvocableMap entry
if and only if the filter applied to the entry evaluates to true
.
the filter to evaluate an entry
Optional
returnValue: booleanspecifies whether the processor should return the current value if it has not been removed
Static
extractConstruct an extract processor based on the specified ValueExtractor.
an extract processor based on the specified extractor.
extractor.ExtractorProcessor
the type of the Map entry keys
the type of the Map entry values
the type of the extracted value
Optional
extractorOrFieldName: stringa Extractor object; passing null is equivalent to using the IdentityExtractor or the property or method name to invoke to provide a value
Static
incrementConstruct an increment processor that will increment a property value by a specified amount, returning either the old or the new value as specified.
an increment processor
the type of the Map entry keys
the type of the Map entry values
the Manipulator or property to manipulate
the Number representing the magnitude and sign of the increment
pass true
to return the value as it was before
it was incremented, or pass false
to return the
value as it is after it is incremented
Static
invokeConstruct MethodInvocationProcessor appropriate for invoking an accessor.
the type of the Map entry keys
the type of the Map entry values
the type of the extracted value
the name of the method to invoke
Rest
...args: any[]the method arguments
Static
invokeConstruct MethodInvocationProcessor appropriate for invoking a mutating method.
the type of the Map entry keys
the type of the Map entry values
the type of the extracted value
the name of the method to invoke
Rest
...args: any[]the method arguments
Static
multiplyConstruct a NumberMultiplier processor that will multiply a property value by a specified factor, returning either the old or the new value as specified.
a multiply processor that will multiply a property value by a specified factor, returning either the old or the new value as specified
the type of the Map entry keys
the type of the Map entry values
the Manipulator or property to manipulate
the Number representing the magnitude and sign of the multiplier
pass true
to return the value as it was before
it was multiplied, or pass false
to return the
value as it is after it is multiplied
Static
nopReturn an EntryProcessor that does nothing and returns true
as a result of execution.
an EntryProcessor that does nothing and returns true
as a result of execution
the type of the Map entry keys
the type of the Map entry values
Static
preloadConstruct the preload request processor.
a preload request processor
the type of the Map entry key
the type of the Map entry value
Static
scriptthe type of the Map entry key
the type of the Map entry value
the language the script is written. Currently, only
js
(for JavaScript) is supported
the name of the EntryProcessor that needs to be executed
Rest
...args: any[]the arguments to be passed to the EntryProcessor
Static
touchConstructs a TouchProcessor that touches
an entry (if present) in order to
trigger interceptor re-evaluation and possibly increment expiry time.
a new TouchProcessor
Static
updateConstruct an update processor for a given method name. The method must have a single parameter of a Java type compatible with the specified value type.
an update processor for a given method name
the type of the Map entry key
the type of the Map entry value
the return type of the ValueUpdater
a ValueUpdater object the property or method name to invoke to provide a value
the value to update the target entry with
Static
versionedConstruct a VersionedPut processor that updates an entry with a new value if and only if the version of the new value matches to the version of the current entry's value. This processor optionally returns the current value as a result of the invocation if it has not been updated (the versions did not match).
the type of the Map entry key
the type of the Map entry value
a value to update an entry with
specifies whether or not an insert should be allowed (no currently existing value)
specifies whether or not the processor should return the current value in case it has not been updated
Static
versionedConstruct a VersionedPutAll processor that updates an entry with a new value if and only if the version of the new value matches to the version of the current entry's value (which must exist). This processor optionally returns a map of entries that have not been updated (the versions did not match).
a VersionedPutAll processor
the type of the Map entry key
the type of the Map entry value
a map of values to update entries with
specifies whether an insert should be allowed (no currently existing value)
specifies whether the processor should return the entries that have not been updated
Construct a ConditionalPut that updates an entry with a new value if and only if the filter applied to the entry evaluates to
true
. This processor optionally returns the current value as a result of the invocation if it has not been updated (the filter evaluated tofalse
).Returns
a put processor that updates an entry with a new value if and only if the filter applied to the entry evaluates to
true
.