@FunctionalInterface public interface MapEventTransformer<K,V,U> extends Serializable
MapEvent destined for the corresponding MapListener.
In general, the transform method is called after the original MapEvent is evaluated by a Filter (such as MapEventFilter). The values contained by the returned MapEvent object will be the ones given (sent) to the corresponding listener. Returning null will prevent the emission of the event altogether.
Note: Currently, the MapEventTransformer interface is supported only by partitioned caches.
| Modifier and Type | Method and Description |
|---|---|
default <T> MapEventTransformer<K,V,T> |
andThen(MapEventTransformer<K,U,T> after)
Returns a composed
MapEventTransformer that performs, in sequence, this transformation followed by the after transformation. |
MapEvent<K,U> |
transform(MapEvent<K,V> event)
Transform the specified MapEvent.
|
MapEvent<K,U> transform(MapEvent<K,V> event)
event - the original MapEvent objectdefault <T> MapEventTransformer<K,V,T> andThen(MapEventTransformer<K,U,T> after)
MapEventTransformer that performs, in sequence, this transformation followed by the after transformation.
If performing either transformation throws an exception, it is relayed to the caller of the composed operation. If performing this transformation throws an exception, the after transformation will not be performed.
after - the transformation to perform after this transformationMapEventTransformer that performs in sequence this transformation followed by the after transformation