1 5 package com.opensymphony.oscache.plugins.clustersupport; 6 7 import java.io.Serializable ; 8 9 18 public class ClusterNotification implements Serializable { 19 23 public static final int FLUSH_KEY = 1; 24 25 29 public static final int FLUSH_GROUP = 2; 30 31 35 public static final int FLUSH_PATTERN = 3; 36 37 41 public static final int FLUSH_CACHE = 4; 42 43 46 protected Serializable data; 47 48 51 protected int type; 52 53 61 public ClusterNotification(int type, Serializable data) { 62 this.type = type; 63 this.data = data; 64 } 65 66 69 public Serializable getData() { 70 return data; 71 } 72 73 76 public int getType() { 77 return type; 78 } 79 80 public String toString() { 81 StringBuffer buf = new StringBuffer (); 82 buf.append("type=").append(type).append(", data=").append(data); 83 84 return buf.toString(); 85 } 86 } 87 | Popular Tags |