public interface MapInterceptor extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
afterGet(Object value)
Called after get(..) operation is completed.
|
void |
afterPut(Object value)
Called after put(..) operation is completed.
|
void |
afterRemove(Object value)
Called after remove(..) operation is completed.
|
Object |
interceptGet(Object value)
Intercept get operation before returning value.
|
Object |
interceptPut(Object oldValue,
Object newValue)
Intercept put operation before modifying 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 get(..) operationObject interceptPut(Object oldValue, Object newValue)
oldValue
- the value currently in mapnewValue
- the new value to be putvoid afterPut(Object value)
value
- the value returned as the result of put(..) operationObject interceptRemove(Object removedValue)
removedValue
- the existing value to be removedvoid afterRemove(Object value)
value
- the value returned as the result of remove(..) operationCopyright © 2014 Hazelcast, Inc.. All Rights Reserved.