Intercept put operation before modifying map data.
Namespace: Hazelcast.MapAssembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.8.2
Object InterceptPut(
Object oldValue,
Object newValue
)
Function InterceptPut (
oldValue As Object,
newValue As Object
) As Object
Object^ InterceptPut(
Object^ oldValue,
Object^ newValue
)
abstract InterceptPut :
oldValue : Object *
newValue : Object -> Object
Parameters
- oldValue
- Type: SystemObject
the value currently in map - newValue
- Type: SystemObject
the new value to be put
Return Value
Type:
Objectnew value after intercept operation
Intercept put operation before modifying map data.
Return the object to be put into the map.
Returning null will cause the put(..) operation to operate as expected, namely no interception.
Throwing an exception will cancel the put operation.
Reference