Click or drag to resize

IMapInterceptorInterceptPut Method

Intercept put operation before modifying map data.

Namespace:  Hazelcast.Map
Assembly:  Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.3
Syntax
Object InterceptPut(
	Object oldValue,
	Object newValue
)

Parameters

oldValue
Type: SystemObject
the value currently in map
newValue
Type: SystemObject
the new value to be put

Return Value

Type: Object
new value after intercept operation
Remarks
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.

See Also