Construct a ConditionalRemove processor that removes an NamedMap
entry if and only if the filter applied to the entry evaluates to true
.
The result of the invocation does not return any result.
the filter to evaluate an entry
Optional
returnValue: booleanspecifies whether or not the processor should return the current value if it has not been removed
Protected
Readonly
filterThe underlying filter.
Protected
returnSpecifies whether or not a return value is required.
Returns a CompositeProcessor comprised of this and the provided processor.
a CompositeProcessor comprised of this and the provided processor
the next processor
If called, it will cause the processor to return the current value in case it has not been updated.
specifies whether or not the processor should return the current value in case it has not been updated
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
.
the filter
ConditionalRemove is an EntryProcessor that performs an remove operation if the specified condition is satisfied.
While the ConditionalRemove processing could be implemented via direct key-based NamedMap operations, it is more efficient and enforces concurrency control without explicit locking.