Interface CacheEventFilterConverter<K,​V,​C>

    • Method Detail

      • filterAndConvert

        C filterAndConvert​(K key,
                           V oldValue,
                           Metadata oldMetadata,
                           V newValue,
                           Metadata newMetadata,
                           EventType eventType)
        Will both filter the entry and if passed subsequently convert the value to a new value. A returned value of null will symbolize the value not passing the filter, so ensure your conversion will not return null if you want this entry to be returned.
        Parameters:
        key - The key for the entry that was changed for the event
        oldValue - The previous value before the event takes place
        oldMetadata - The old value before the event takes place
        newValue - The new value for the entry after the event takes place
        newMetadata - The new metadata for the entry after the event takes place
        eventType - The type of event that is being raised
        Returns:
        A non null value converted value when it also passes the filter or null for when it doesn't pass the filter
      • format

        default org.infinispan.commons.dataconversion.MediaType format()
        Specified by:
        format in interface CacheEventConverter<K,​V,​C>
        Specified by:
        format in interface CacheEventFilter<K,​V>
        Returns:
        The desired data format to be used in the accept operation. If null, the filter will receive data as it's stored.