ClientConstants.java :  » JMS » Open-Message-Queue » com » sun » messaging » jmq » Java Open Source

Java Open Source » JMS » Open Message Queue 
Open Message Queue » com » sun » messaging » jmq » ClientConstants.java
/*
 * The contents of this file are subject to the terms
 * of the Common Development and Distribution License
 * (the "License").  You may not use this file except
 * in compliance with the License.
 *
 * You can obtain a copy of the license at
 * https://glassfish.dev.java.net/public/CDDLv1.0.html.
 * See the License for the specific language governing
 * permissions and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL
 * HEADER in each file and include the License file at
 * https://glassfish.dev.java.net/public/CDDLv1.0.html.  
 *
 * If applicable add the following below this CDDL HEADER,
 * with the fields enclosed by brackets "[]" replaced with 
 * your own identifying information: Portions Copyright 
 * [year] [name of copyright owner]
 */

/*
 * @(#)ClientConstants.java  1.4 05/02/06
 *
 * Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
 */ 

package com.sun.messaging.jmq;

/**
 * <code>ClientConstants</code> encapsulates JMQ specific
 * constant definitions and static strings used by the client that
 * need to be shared with the admin.
 *
 * @version     1.4 06/05/02
 */
public class ClientConstants {

    /* No public constructor needed */
    private ClientConstants(){}

    /** The connection type indicator for NORMAL connections */
    public static final String CONNECTIONTYPE_NORMAL = "NORMAL";
 
    /** The connection type indicator for ADMIN connections */
    public static final String CONNECTIONTYPE_ADMIN = "ADMIN";
 
    /** The connection type indicator for ADMINKEY connections */
    public static final String CONNECTIONTYPE_ADMINKEY = "ADMINKEY";
 
    /** The URI prefix for a temporary destination name */
    public static final String TEMPORARY_DESTINATION_URI_PREFIX = "temporary_destination://";

    /** The URI component for a temporary queue */
    public static final String TEMPORARY_QUEUE_URI_NAME = "queue/";

    /** The URI component for a temporary topic */
    public static final String TEMPORARY_TOPIC_URI_NAME = "topic/";

    /** The Destination Type value for an Unknown Destination */
    public static final int DESTINATION_TYPE_UNKNOWN = 0;

    /** The Destination Type value for a Queue Destination */
    public static final int DESTINATION_TYPE_QUEUE = 1;

    /** The Destination Type value for a Topic Destination */
    public static final int DESTINATION_TYPE_TOPIC = 2;

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.