1 64 package com.jcorporate.expresso.core.cache; 65 66 import java.io.IOException ; 67 import java.io.ObjectInputStream ; 68 import java.io.ObjectOutputStream ; 69 import java.io.Serializable ; 70 71 72 78 public class CacheSyncMessage 79 implements Serializable { 80 81 84 private String key; 85 86 89 private String contextName; 90 91 94 private String cacheName; 95 96 97 public CacheSyncMessage() { 98 } 99 100 106 private void readObject(ObjectInputStream ois) 107 throws ClassNotFoundException , IOException { 108 key = (String ) ois.readObject(); 109 contextName = (String ) ois.readObject(); 110 cacheName = (String ) ois.readObject(); 111 } 112 113 120 private void writeObject(ObjectOutputStream oos) 121 throws IOException { 122 oos.writeObject(key); 123 oos.writeObject(contextName); 124 oos.writeObject(cacheName); 125 } 126 127 public void setKey(String newKey) { 128 key = newKey; 129 } 130 131 public String getKey() { 132 return key; 133 } 134 135 public void setContextName(String newContextName) { 136 contextName = newContextName; 137 } 138 139 public String getContextName() { 140 return contextName; 141 } 142 143 public void setCacheName(String newCacheName) { 144 cacheName = newCacheName; 145 } 146 147 public String getCacheName() { 148 return cacheName; 149 } 150 151 } | Popular Tags |