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 long modifyTimestamp; 014 015 private final Set<String> dependentTables; 016 017 public ServerCacheNotification(long modifyTimestamp, Set<String> dependentTables) { 018 this.modifyTimestamp = modifyTimestamp; 019 this.dependentTables = dependentTables; 020 } 021 022 @Override 023 public String toString() { 024 return "ts:" + modifyTimestamp + " tables:" + dependentTables; 025 } 026 027 public long getModifyTimestamp() { 028 return modifyTimestamp; 029 } 030 031 public Set<String> getDependentTables() { 032 return dependentTables; 033 } 034}