KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jms > server > standard > QueueDeliveryEndpoint


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.jms.server.standard;
8
9 import org.jboss.jms.server.DeliveryEndpoint;
10 import org.jboss.jms.server.MessageReference;
11 import org.jboss.jms.server.list.MessageList;
12
13 /**
14  * A queue delivery endpoint
15  *
16  * @author <a HREF="mailto:adrian@jboss.org>Adrian Brock</a>
17  * @version $Revision: 1.1 $
18  */

19 public class QueueDeliveryEndpoint
20    implements DeliveryEndpoint
21 {
22    // Constants -----------------------------------------------------
23

24    // Attributes ----------------------------------------------------
25

26    /** The message list */
27    private MessageList list;
28
29    // Static --------------------------------------------------------
30

31    // Constructors --------------------------------------------------
32

33    public QueueDeliveryEndpoint(MessageList list)
34    {
35       this.list = list;
36    }
37
38    // Public --------------------------------------------------------
39

40    // DeliveryEndpoint implementation -------------------------------
41

42    public void deliver(MessageReference message)
43       throws Exception JavaDoc
44    {
45       list.add(message);
46    }
47
48    // Protected ------------------------------------------------------
49

50    // Package Private ------------------------------------------------
51

52    // Private --------------------------------------------------------
53

54    // Inner Classes --------------------------------------------------
55

56 }
57
Popular Tags