Commit 9274b282 authored by WIlly Malvault's avatar WIlly Malvault
Browse files

two methods moved form package to public visibility, for abstract-mediation compliance

parent 5b9ea9ba
......@@ -335,13 +335,13 @@ public final class AgentServer {
return consumers.elements();
}
static MessageConsumer getConsumer(String domain) throws Exception {
public static MessageConsumer getConsumer(String domain) throws Exception {
if (! consumers.containsKey(domain))
throw new Exception("Unknown consumer for domain " + domain);
return (MessageConsumer) consumers.get(domain);
}
static void removeConsumer(String domain) {
public static void removeConsumer(String domain) {
MessageConsumer cons = (MessageConsumer) consumers.remove(domain);
if (cons != null) {
cons.stop();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment