1 21 package fr.dyade.aaa.agent; 22 23 import java.io.IOException ; 24 29 public interface MessageConsumer { 30 35 String getName(); 36 37 42 String getDomainName(); 43 44 51 void insert(Message msg); 52 53 56 void save() throws IOException ; 57 58 61 void restore() throws Exception ; 62 63 68 void post(Message msg) throws Exception ; 69 70 73 void validate(); 74 75 80 void start() throws Exception ; 81 82 87 void stop(); 88 89 97 void delete() throws IllegalStateException ; 98 99 105 MessageQueue getQueue(); 106 107 114 boolean isRunning(); 115 } 116 | Popular Tags |