18 #ifndef _ACTIVEMQ_STATE_CONNECTIONSTATE_H_
19 #define _ACTIVEMQ_STATE_CONNECTIONSTATE_H_
62 bool connectionInterruptProcessingComplete;
73 std::string toString()
const;
79 void checkShutdown()
const;
87 tempDestinations.
add(info);
94 transactions.
put(
id.dynamicCast<LocalTransactionId>(), Pointer<TransactionState>(
new TransactionState(
id)));
98 return transactions.
get(
id.dynamicCast<LocalTransactionId>());
102 return transactions.
values();
106 return transactions.
remove(
id.dynamicCast<LocalTransactionId>());
115 return sessions.
remove(
id);
119 return sessions.
get(
id);
123 return tempDestinations;
131 return recoveringPullConsumers;
135 this->connectionInterruptProcessingComplete = connectionInterruptProcessingComplete;
139 return this->connectionInterruptProcessingComplete;
StlMap< Pointer< ConsumerId >, Pointer< ConsumerInfo >, ConsumerId::COMPARATOR > & getRecoveringPullConsumers()
Definition: ConnectionState.h:130
The root interface in the collection hierarchy.
Definition: Collection.h:68
const Pointer< commands::ConnectionInfo > getInfo() const
Definition: ConnectionState.h:75
const Pointer< TransactionState > & getTransactionState(Pointer< TransactionId > id) const
Definition: ConnectionState.h:97
virtual const Pointer< SessionId > & getSessionId() const
const decaf::util::Collection< Pointer< TransactionState > > & getTransactionStates() const
Definition: ConnectionState.h:101
const LinkedList< Pointer< DestinationInfo > > & getTempDesinations() const
Definition: ConnectionState.h:122
#define AMQCPP_API
Definition: Config.h:30
Map template that wraps around a std::map to provide a more user-friendly interface and to provide co...
Definition: StlMap.h:47
Definition: ActiveMQBlobMessage.h:28
void addSession(Pointer< SessionInfo > info)
Definition: ConnectionState.h:109
virtual Collection< V > & values()
Returns a Collection view of the values contained in this map.
Definition: ConcurrentStlMap.h:1092
virtual bool add(const E &value)
Returns true if this collection changed as a result of the call.
Definition: LinkedList.h:194
Definition: TransactionState.h:45
Map template that wraps around a std::map to provide a more user-friendly interface and to provide co...
Definition: ConcurrentStlMap.h:51
void addTransactionState(Pointer< TransactionId > id)
Definition: ConnectionState.h:92
virtual V remove(const K &key)
Removes the value (key/value pair) for the specified key from the map, returns a copy of the value th...
Definition: ConcurrentStlMap.h:916
void addTempDestination(Pointer< DestinationInfo > info)
Definition: ConnectionState.h:85
void setConnectionInterruptProcessingComplete(bool connectionInterruptProcessingComplete)
Definition: ConnectionState.h:134
Definition: AbstractCollection.h:33
A boolean value that may be updated atomically.
Definition: AtomicBoolean.h:34
bool isConnectionInterruptProcessingComplete()
Definition: ConnectionState.h:138
virtual V & get(const K &key)
Gets the value mapped to the specified key in the Map.If there is no element in the map whose key is ...
Definition: ConcurrentStlMap.h:829
virtual bool put(const K &key, const V &value)
Associates the specified value with the specified key in this map (optional operation).If the map previously contained a mapping for the key, the old value is replaced by the specified value. (A map m is said to contain a mapping for a key k if and only if m.containsKey(k) would return true.)The target key. The value to be set.true if the put operation replaced a value that was associated with an existing mapping to the given key or false otherwise.if this map is unmodifiable. if some property of the specified key or value prevents it from being stored in this map
Definition: ConcurrentStlMap.h:861
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
const Pointer< SessionState > getSessionState(Pointer< SessionId > id) const
Definition: ConnectionState.h:118
Definition: SessionState.h:41
This implementation of Comparator is designed to allows objects in a Collection to be sorted or teste...
Definition: Pointer.h:366
Definition: ConnectionState.h:49
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition: Pointer.h:53
Pointer< TransactionState > removeTransactionState(Pointer< TransactionId > id)
Definition: ConnectionState.h:105
const decaf::util::Collection< Pointer< SessionState > > & getSessionStates() const
Definition: ConnectionState.h:126
Pointer< SessionState > removeSession(Pointer< SessionId > id)
Definition: ConnectionState.h:114
A complete implementation of the List interface using a doubly linked list data structure.
Definition: LinkedList.h:55