KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ubermq > jms > client > ClientConfig


1 package com.ubermq.jms.client;
2
3 /**
4  * Settings keys for all client-side configuration propreties.
5  */

6 public class ClientConfig
7 {
8     private ClientConfig() {}
9     
10     ////////////// UNICAST CONNECTION SETTINGS
11

12     /**
13      * The JMS topic to send keep alive messages to. This is
14      * .com.ubermq.keepalive by default.
15      */

16     public static final String JavaDoc UNICAST_KEEP_ALIVE = "client.unicast.keepalivetopic";
17     
18     /**
19      * The period of the keep alive messages, in ms. Set to zero to disable keep alives.
20      * This is 30000 (30 seconds) by default.
21      */

22     public static final String JavaDoc UNICAST_KEEP_ALIVE_PERIOD = "client.unicast.keepaliveperiod";
23     
24     ////////////// SUBSCRIBER SETTINGS
25

26     /**
27      * the number of messages to keep enqueued for a subscriber who is using
28      * receiveXXX() synchronous API's.
29      */

30     public static final String JavaDoc SUB_BOUNDED_BUFFER_SIZE = "client.subscriber.receivequeue";
31     
32     /**
33      * amount of time to wait for out of sequence messages. default is 750ms.
34      */

35     public static final String JavaDoc SUB_UNSEQUENCED_FLUSH_TIMEOUT = "client.subscriber.unsequencedflushtimeout";
36     
37     /**
38      * the number of messages to keep enqueued per session for the delivery thread
39      * to deliver.
40      */

41     public static final String JavaDoc SESSION_BOUNDED_BUFFER_SIZE = "client.session.receivequeue";
42     
43     /**
44      * initial timeout when the publisher's output buffer is full. see related
45      * backoff multiplier and maximum timeout.
46      */

47     public static final String JavaDoc PUBLISH_INITIAL_TIMEOUT = "client.publisher.initialtimeout";
48     public static final String JavaDoc PUBLISH_BACKOFF_MULTIPLIER = "client.publisher.backoffmultiplier";
49     public static final String JavaDoc PUBLISH_MAXIMUM_TIMEOUT = "client.publisher.maximumtimeout";
50     
51     /**
52      * When we are in waiting for ack mode, this is how long we'll wait for an ack before
53      * we give up and proceed.
54      */

55     public static final String JavaDoc PUBLISH_MAX_ACK_WAIT_TIMEOUT = "client.publisher.maxacktimeout";
56     
57     /**
58      * Whether we should wait for acks before sending more messages
59      * from the server in the default client processor. The default is false.
60      *
61      * <P>This is a potentially CRITICAL performance boost! On UNIX platforms,
62      * set this to false. Windows seems to perform better with this set to true, oddly.
63      */

64     public static final String JavaDoc PUBLISH_SHOULD_WAIT_FOR_ACK = "client.publisher.shouldwaitforack";
65 }
66
Popular Tags