KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > walend > somnifugi > SomniProperties


1 package net.walend.somnifugi;
2
3 import java.util.Properties JavaDoc;
4
5 import net.walend.somnifugi.juc.PriorityChannelFactory;
6 import net.walend.somnifugi.juc.SimpleFanOutFactory;
7 import net.walend.somnifugi.juc.MessageSelectingPriorityChannelFactory;
8
9 /**
10 Property keys and values for SomnifugiJMS features.
11
12 @author <a HREF="http://walend.net">David Walend</a> <a HREF="mailto:david@walend.net">david@walend.net</a>
13  */

14
15 public interface SomniProperties
16 {
17     /**
18 key prefix for defaults. This is the default destination name.
19     */

20     public static final String JavaDoc DEFAULT = "default";
21
22     //CopyMode properties
23
/**
24 Key for the copy mode property for a Queue or Topic.
25     */

26     public static final String JavaDoc COPYMODE = "copyMode";
27
28     /**
29 Value of copy mode for no copy. This is the default. It is not compatible with CLIENT_ACKNOWLEDGE.
30     */

31     public static final String JavaDoc NOCOPY = "noCopy";
32
33     /**
34 Value of copy mode for deep copies. Message properties and contents are deep-copied by serialization. Messages are copied via a copy constructor. The default is DEEPCOPY unless otherwise specified.
35     */

36     public static final String JavaDoc DEEPCOPY = "deepCopy";
37
38     /**
39 Value of copy mode for shallow copies. Message properties and contents are not copied; the original objects are used. Messages are copied via a copy constructor.
40     */

41     public static final String JavaDoc SHALLOWCOPY = "shallowCopy";
42
43     /**
44 Class name of the ChannelFactory to use for a destination.
45     */

46     public static final String JavaDoc CHANNELFACTORYCLASSNAMEPROP = "ChannelFactoryClassName";
47
48     /**
49 Default class name of the ChannelFactory to use for a Queue. (MessageSelectingPriorityChannelFactory.)
50     */

51     public static final String JavaDoc DEFAULTQUEUECHANNELFACTORYCLASSNAME = MessageSelectingPriorityChannelFactory.class.getName();
52
53     /**
54 Default class name of the ChannelFactory to use for a Topic. (PriorityChannelFactory.)
55     */

56     public static final String JavaDoc DEFAULTTOPICCHANNELFACTORYCLASSNAME = PriorityChannelFactory.class.getName();
57
58     //-----------
59
//FanOut
60
/**
61 Class name of the FanOutFactory to use for a destination.
62     */

63     public static final String JavaDoc FANOUTFACTORYCLASSNAMEPROP = "FanOutFactoryClassName";
64
65     /**
66 Default class name of the FanOutFactory to use for a destination. (SimpleFanOutFactory.)
67     */

68     public static final String JavaDoc DEFAULTFANOUTFACTORYCLASSNAME = SimpleFanOutFactory.class.getName();
69
70     //BoundedLinkedQueue properties
71
/**
72 Capacity of BoundedLinkedQueues if BoundedLinkedQueues are used as channels.
73     */

74     public static final String JavaDoc CAPACITYPROP = "capacity";
75
76
77     //TimeoutChannelFactory properties
78
/**
79 <b>destination</b>.timeout - The timeout time in ms. (Default is ten minutes.)
80     */

81     public static final String JavaDoc TIMEOUTPROP = "timeout";
82
83     /**
84 wrapped-<b>destination</b> - Any properties for the internal ChannelFactory. (Default will be the default Channel properties.)
85     */

86     public static final String JavaDoc WRAPPEDPROP = "wrapped-";
87     
88     //---------
89
//SomniContext
90
public static final String JavaDoc CONNECTION = "Connection";
91     public static final String JavaDoc CONNECTIONFACTORY = "ConnectionFactory";
92
93     //SomniContextFactories
94
public static final String JavaDoc QUEUECONTEXTNAMEKEY = "SomniQueueContext";
95     public static final String JavaDoc QUEUEDEFAULTCONTEXTNAME = "DefaultSomniQueueContext";
96
97     public static final String JavaDoc TOPICCONTEXTNAMEKEY = "SomniTopicContext";
98     public static final String JavaDoc TOPICDEFAULTCONTEXTNAME = "DefaultSomniTopicContext";
99 }
100
Popular Tags