001package io.ebean.cache; 002 003import java.util.Set; 004 005/** 006 * Notification event that dependent tables have been modified. 007 * <p> 008 * This is sent to other interested servers (in the cluster). 009 * </p> 010 */ 011public class ServerCacheNotification { 012 013 private final Set<String> dependentTables; 014 015 public ServerCacheNotification(Set<String> dependentTables) { 016 this.dependentTables = dependentTables; 017 } 018 019 @Override 020 public String toString() { 021 return "tables:" + dependentTables; 022 } 023 024 public Set<String> getDependentTables() { 025 return dependentTables; 026 } 027}