I am using Ignite cache with ModifiedExpiryPolicy and need to execute a line of code before event execution. Any help?
IgniteCache<String, Object> expiresCache = cache.withExpiryPolicy(new ModifiedExpiryPolicy(new Duration(Time.MINUTES, timeInMins)));
public class ClassName {
public IgnitePredicate<CacheEvent> functionName() {
return new IgnitePredicate<CacheEvent>() {
@Override
public boolean apply(CacheEvent evt) {
//code to be executed after event.
return true;
}
};
}
}