
org.infinispan.server.hotrod.event.KeyValueWithPreviousEventConverter Maven / Gradle / Ivy
package org.infinispan.server.hotrod.event;
import org.infinispan.commons.util.KeyValueWithPrevious;
import org.infinispan.metadata.Metadata;
import org.infinispan.notifications.cachelistener.filter.CacheEventConverter;
import org.infinispan.notifications.cachelistener.filter.EventType;
public class KeyValueWithPreviousEventConverter implements CacheEventConverter> {
@Override
public KeyValueWithPrevious convert(K key, V oldValue, Metadata oldMetadata, V newValue, Metadata newMetadata, EventType eventType) {
return new KeyValueWithPrevious(key, newValue, oldValue);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy