1 22 package org.jboss.cache.invalidation.bridges; 23 24 import org.jboss.cache.invalidation.BatchInvalidation; 25 26 41 42 public class JMSCacheInvalidationMessage 43 implements java.io.Serializable 44 { 45 46 48 50 protected BatchInvalidation[] bis = null; 51 protected java.rmi.dgc.VMID emitter = null; 52 protected String invalidateAllGroupName; 53 54 56 58 public JMSCacheInvalidationMessage (java.rmi.dgc.VMID source, 59 String groupName, 60 java.io.Serializable [] keys) 61 { 62 this.emitter = source; 63 this.bis = new BatchInvalidation[] 64 { 65 new BatchInvalidation (keys, groupName) 66 }; 67 } 68 69 public JMSCacheInvalidationMessage (java.rmi.dgc.VMID source, 70 BatchInvalidation[] invalidations) 71 { 72 this.emitter = source; 73 this.bis = invalidations; 74 } 75 76 public JMSCacheInvalidationMessage(java.rmi.dgc.VMID source, String groupName) 77 { 78 this.emitter = source; 79 this.invalidateAllGroupName = groupName; 80 } 81 82 84 public BatchInvalidation[] getInvalidations() 85 { 86 if (this.bis == null) 87 this.bis = new BatchInvalidation[0]; 88 89 return this.bis; 90 } 91 92 94 96 98 100 102 104 } 105 | Popular Tags |