diff options
author | Rajith Muditha Attapattu <rajith@apache.org> | 2010-02-03 18:00:45 +0000 |
---|---|---|
committer | Rajith Muditha Attapattu <rajith@apache.org> | 2010-02-03 18:00:45 +0000 |
commit | 5991998e87dcfeacb1d12250e0443e924e028d0f (patch) | |
tree | 3702f9600215995d2815f38b8813af2af68f06c7 /qpid/java/common/src/main | |
parent | 849d338853196d9539de019383c48baded147298 (diff) | |
download | qpid-python-5991998e87dcfeacb1d12250e0443e924e028d0f.tar.gz |
Removed the ClientProperties.java I added to a wrong package name
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@906156 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common/src/main')
-rw-r--r-- | qpid/java/common/src/main/java/org/apache/configuration/ClientProperties.java | 142 |
1 files changed, 0 insertions, 142 deletions
diff --git a/qpid/java/common/src/main/java/org/apache/configuration/ClientProperties.java b/qpid/java/common/src/main/java/org/apache/configuration/ClientProperties.java deleted file mode 100644 index 90eec34713..0000000000 --- a/qpid/java/common/src/main/java/org/apache/configuration/ClientProperties.java +++ /dev/null @@ -1,142 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.configuration; - -/** - * This class centralized the Qpid client properties. - */ -public class ClientProperties extends PropertyNameResolver -{ - - /** - * Currently with Qpid it is not possible to change the client ID. - * If one is not specified upon connection construction, an id is generated automatically. - * Therefore an exception is always thrown unless this property is set to true. - * type: boolean - */ - public static final String IGNORE_SET_CLIENTID_PROP_NAME = "ignore_setclientID"; - - /** - * This property is currently used within the 0.10 code path only - * The maximum number of pre-fetched messages per destination - * This property is used for all the connection unless it is overwritten by the connectionURL - * type: long - */ - public static final String MAX_PREFETCH_PROP_NAME = "max_prefetch"; - public static final String MAX_PREFETCH_DEFAULT = "500"; - - /** - * When true a sync command is sent after every persistent messages. - * type: boolean - */ - public static final String SYNC_PERSISTENT_PROP_NAME = "sync_persistence"; - - /** - * When true a sync command is sent after sending a message ack. - * type: boolean - */ - public static final String SYNC_ACK_PROP_NAME = "sync_ack"; - - /** - * sync_publish property - {persistent|all} - * If set to 'persistent',then persistent messages will be publish synchronously - * If set to 'all', then all messages regardless of the delivery mode will be - * published synchronously. - */ - public static final String SYNC_PUBLISH_PROP_NAME = "sync_publish"; - - /** - * This value will be used in the following settings - * To calculate the SO_TIMEOUT option of the socket (2*idle_timeout) - * If this values is between the max and min values specified for heartbeat - * by the broker in TuneOK it will be used as the heartbeat interval. - * If not a warning will be printed and the max value specified for - * heartbeat in TuneOK will be used - * - * The default idle timeout is set to 120 secs - */ - public static final String IDLE_TIMEOUT_PROP_NAME = "idle_timeout"; - public static final long DEFAULT_IDLE_TIMEOUT = 120000; - - public static final String HEARTBEAT = "qpid.heartbeat"; - public static final int HEARTBEAT_DEFAULT = 120; - - /** - * This value will be used to determine the default destination syntax type. - * Currently the two types are Binding URL (java only) and the Addressing format (used by - * all clients). - */ - public static final String DEST_SYNTAX = "qpid.dest_syntax"; - - public static final String USE_LEGACY_MAP_MESSAGE_FORMAT = "qpid.use_legacy_map_message"; - - /** - * ========================================================== - * Those properties are used when the io size should be bounded - * ========================================================== - */ - - /** - * When set to true the io layer throttle down producers and consumers - * when written or read messages are accumulating and exceeding a certain size. - * This is especially useful when a the producer rate is greater than the network - * speed. - * type: boolean - */ - public static final String PROTECTIO_PROP_NAME = "protectio"; - - //=== The following properties are only used when the previous one is true. - /** - * Max size of read messages that can be stored within the MINA layer - * type: int - */ - public static final String READ_BUFFER_LIMIT_PROP_NAME = "qpid.read.buffer.limit"; - public static final String READ_BUFFER_LIMIT_DEFAULT = "262144"; - /** - * Max size of written messages that can be stored within the MINA layer - * type: int - */ - public static final String WRITE_BUFFER_LIMIT_PROP_NAME = "qpid.read.buffer.limit"; - public static final String WRITE_BUFFER_LIMIT_DEFAULT = "262144"; - - public static final String AMQP_VERSION = "qpid.amqp.version"; - - private static ClientProperties _instance = new ClientProperties(); - - ClientProperties() - { - properties.put(IGNORE_SET_CLIENTID_PROP_NAME, new QpidProperty(false, - "qpid.ignore_set_client_id","ignore_setclientID")); - - properties.put(SYNC_PERSISTENT_PROP_NAME, new QpidProperty(false, - "qpid.sync_persistence","sync_persistence")); - - - properties.put(MAX_PREFETCH_PROP_NAME, new QpidProperty(500, - "qpid.max_prefetch","max_prefetch")); - - } - - public ClientProperties get() - { - return _instance; - } - - -} |