KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ubermq > jms > server > journal > DurableConnectionArbiter


1 package com.ubermq.jms.server.journal;
2
3 import com.ubermq.kernel.DatagramSink;
4
5 /**
6  * Chooses a single node among
7  * many connected nodes to deliver a message to. This is used
8  * for durable subscriptions that may accept multiple connections
9  * to it (effectively, a queue).
10  */

11 public interface DurableConnectionArbiter
12     extends DatagramSink, java.io.Serializable JavaDoc
13 {
14     /**
15      * Connects a new output destination node to the
16      * arbiter.
17      */

18     public void connect(DatagramSink cdn);
19
20     /**
21      * Disconnects an output node from the arbiter.
22      */

23     public void disconnect(DatagramSink cdn);
24
25     /**
26      * Disconnects all output nodes from the arbiter.
27      */

28     public void disconnectAll();
29
30     /**
31      * Returns an informative representation of this
32      * arbiter in HTML.
33      *
34      * @return an HTML rendering of this arbiter's state.
35      */

36     public String JavaDoc toHtml();
37
38 }
39
Popular Tags