com.hazelcast.map
public interface MapInterceptor extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
afterGet(Object value)
Called after the get(..) operation is completed.
|
void |
afterPut(Object value)
Called after the put(..) operation is completed.
|
void |
afterRemove(Object value)
Called after the remove(..) operation is completed.
|
Object |
interceptGet(Object value)
Intercept the get operation before returning value.
|
Object |
interceptPut(Object oldValue,
Object newValue)
Intercept the put operation before modifying the map data.
|
Object |
interceptRemove(Object removedValue)
Intercept remove operation before removing the data.
|
Object interceptGet(Object value)
value
- the original value to be returned as the result of get(..) operationvoid afterGet(Object value)
value
- the value returned as the result of the get(..) operationObject interceptPut(Object oldValue, Object newValue)
oldValue
- the value currently in mapnewValue
- the new value to be put into the mapvoid afterPut(Object value)
value
- the value returned as the result of the put(..) operationObject interceptRemove(Object removedValue)
removedValue
- the existing value to be removedvoid afterRemove(Object value)
value
- the value returned as the result of the remove(..) operationCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.