1 22 package org.jboss.test.cluster.ds; 23 24 import java.io.Serializable ; 25 import java.util.Collection ; 26 27 32 public interface IDistributedState 33 { 34 public static class NotifyData implements Serializable 35 { 36 public String category; 37 public Serializable key; 38 public Serializable value; 39 public boolean locallyModified; 40 public String toString() 41 { 42 StringBuffer tmp = new StringBuffer (); 43 tmp.append("category:"); 44 tmp.append(category); 45 tmp.append(", key:"); 46 tmp.append(key); 47 tmp.append(", value:"); 48 tmp.append(value); 49 tmp.append(", locallyModified:"); 50 tmp.append(locallyModified); 51 return tmp.toString(); 52 } 53 } 54 public Serializable get(Serializable key); 55 public void put(Serializable key, Serializable value) 56 throws Exception ; 57 public void remove(Serializable key) 58 throws Exception ; 59 60 public Collection listAllCategories(); 61 public Collection listAllKeys(String category); 62 public Collection listAllValues(String category); 63 64 public void flush(); 65 public int size(); 66 67 } 68 | Popular Tags |