Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
qpid/framing/enum.h
Go to the documentation of this file.
00001 #ifndef QPID_FRAMING_ENUM_H
00002 #define QPID_FRAMING_ENUM_H
00003 /*
00004  *
00005  * Licensed to the Apache Software Foundation (ASF) under one
00006  * or more contributor license agreements.  See the NOTICE file
00007  * distributed with this work for additional information
00008  * regarding copyright ownership.  The ASF licenses this file
00009  * to you under the Apache License, Version 2.0 (the
00010  * "License"); you may not use this file except in compliance
00011  * with the License.  You may obtain a copy of the License at
00012  *
00013  *   http://www.apache.org/licenses/LICENSE-2.0
00014  *
00015  * Unless required by applicable law or agreed to in writing,
00016  * software distributed under the License is distributed on an
00017  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
00018  * KIND, either express or implied.  See the License for the
00019  * specific language governing permissions and limitations
00020  * under the License.
00021  *
00022  */
00023 
00028 
00029 
00030 
00031 namespace qpid {
00032 namespace framing {
00033 
00034 enum SegmentType {
00035     SEGMENT_TYPE_CONTROL=0,
00036     SEGMENT_TYPE_COMMAND=1,
00037     SEGMENT_TYPE_HEADER=2,
00038     SEGMENT_TYPE_BODY=3
00039 };
00040 enum Track {
00041     TRACK_CONTROL=0,
00042     TRACK_COMMAND=1
00043 };
00044 
00045 namespace connection {
00046 
00047 enum CloseCode {
00048     CLOSE_CODE_NORMAL=200,
00049     CLOSE_CODE_CONNECTION_FORCED=320,
00050     CLOSE_CODE_INVALID_PATH=402,
00051     CLOSE_CODE_FRAMING_ERROR=501
00052 };
00053 
00054 } // namespace connection
00055 
00056 
00057 namespace session {
00058 
00059 enum DetachCode {
00060     DETACH_CODE_NORMAL=0,
00061     DETACH_CODE_SESSION_BUSY=1,
00062     DETACH_CODE_TRANSPORT_BUSY=2,
00063     DETACH_CODE_NOT_ATTACHED=3,
00064     DETACH_CODE_UNKNOWN_IDS=4
00065 };
00066 
00067 } // namespace session
00068 
00069 
00070 namespace execution {
00071 
00072 enum ErrorCode {
00073     ERROR_CODE_UNAUTHORIZED_ACCESS=403,
00074     ERROR_CODE_NOT_FOUND=404,
00075     ERROR_CODE_RESOURCE_LOCKED=405,
00076     ERROR_CODE_PRECONDITION_FAILED=406,
00077     ERROR_CODE_RESOURCE_DELETED=408,
00078     ERROR_CODE_ILLEGAL_STATE=409,
00079     ERROR_CODE_COMMAND_INVALID=503,
00080     ERROR_CODE_RESOURCE_LIMIT_EXCEEDED=506,
00081     ERROR_CODE_NOT_ALLOWED=530,
00082     ERROR_CODE_ILLEGAL_ARGUMENT=531,
00083     ERROR_CODE_NOT_IMPLEMENTED=540,
00084     ERROR_CODE_INTERNAL_ERROR=541,
00085     ERROR_CODE_INVALID_ARGUMENT=542
00086 };
00087 
00088 } // namespace execution
00089 
00090 
00091 namespace message {
00092 
00093 enum AcceptMode {
00094     ACCEPT_MODE_EXPLICIT=0,
00095     ACCEPT_MODE_NONE=1
00096 };
00097 enum AcquireMode {
00098     ACQUIRE_MODE_PRE_ACQUIRED=0,
00099     ACQUIRE_MODE_NOT_ACQUIRED=1
00100 };
00101 enum RejectCode {
00102     REJECT_CODE_UNSPECIFIED=0,
00103     REJECT_CODE_UNROUTABLE=1,
00104     REJECT_CODE_IMMEDIATE=2
00105 };
00106 enum DeliveryMode {
00107     DELIVERY_MODE_NON_PERSISTENT=1,
00108     DELIVERY_MODE_PERSISTENT=2
00109 };
00110 enum DeliveryPriority {
00111     DELIVERY_PRIORITY_LOWEST=0,
00112     DELIVERY_PRIORITY_LOWER=1,
00113     DELIVERY_PRIORITY_LOW=2,
00114     DELIVERY_PRIORITY_BELOW_AVERAGE=3,
00115     DELIVERY_PRIORITY_MEDIUM=4,
00116     DELIVERY_PRIORITY_ABOVE_AVERAGE=5,
00117     DELIVERY_PRIORITY_HIGH=6,
00118     DELIVERY_PRIORITY_HIGHER=7,
00119     DELIVERY_PRIORITY_VERY_HIGH=8,
00120     DELIVERY_PRIORITY_HIGHEST=9
00121 };
00122 enum FlowMode {
00123     FLOW_MODE_CREDIT=0,
00124     FLOW_MODE_WINDOW=1
00125 };
00126 enum CreditUnit {
00127     CREDIT_UNIT_MESSAGE=0,
00128     CREDIT_UNIT_BYTE=1
00129 };
00130 
00131 } // namespace message
00132 
00133 
00134 namespace dtx {
00135 
00136 enum XaStatus {
00137     XA_STATUS_XA_OK=0,
00138     XA_STATUS_XA_RBROLLBACK=1,
00139     XA_STATUS_XA_RBTIMEOUT=2,
00140     XA_STATUS_XA_HEURHAZ=3,
00141     XA_STATUS_XA_HEURCOM=4,
00142     XA_STATUS_XA_HEURRB=5,
00143     XA_STATUS_XA_HEURMIX=6,
00144     XA_STATUS_XA_RDONLY=7
00145 };
00146 
00147 } // namespace dtx
00148 
00149 
00150 namespace file {
00151 
00152 enum ReturnCode {
00153     RETURN_CODE_CONTENT_TOO_LARGE=311,
00154     RETURN_CODE_NO_ROUTE=312,
00155     RETURN_CODE_NO_CONSUMERS=313
00156 };
00157 
00158 } // namespace file
00159 
00160 
00161 namespace stream {
00162 
00163 enum ReturnCode {
00164     RETURN_CODE_CONTENT_TOO_LARGE=311,
00165     RETURN_CODE_NO_ROUTE=312,
00166     RETURN_CODE_NO_CONSUMERS=313
00167 };
00168 
00169 } // namespace stream
00170 
00171 
00172 namespace cluster {
00173 
00174 enum StoreState {
00175     STORE_STATE_NO_STORE=0,
00176     STORE_STATE_EMPTY_STORE=1,
00177     STORE_STATE_CLEAN_STORE=2,
00178     STORE_STATE_DIRTY_STORE=3
00179 };
00180 enum ErrorType {
00181     ERROR_TYPE_NONE=0,
00182     ERROR_TYPE_SESSION=1,
00183     ERROR_TYPE_CONNECTION=2
00184 };
00185 
00186 } // namespace cluster
00187 
00188 
00189 }} // namespace qpid::framing
00190 
00191 #endif  

Qpid C++ API Reference
Generated on Mon Aug 22 2011 for Qpid C++ Client API by doxygen 1.7.4