18#ifndef _ACTIVEMQ_STATE_SESSIONSTATE_H_
19#define _ACTIVEMQ_STATE_SESSIONSTATE_H_
36 using decaf::lang::Pointer;
37 using decaf::util::concurrent::ConcurrentStlMap;
38 using decaf::util::concurrent::atomic::AtomicBoolean;
39 using namespace activemq::commands;
58 SessionState(
const SessionState&);
59 SessionState& operator=(
const SessionState&);
82 return producers.values();
86 return producers.get(
id);
90 return consumers.values();
94 return consumers.get(
id);
#define AMQCPP_API
Definition Config.h:30
decaf::lang::PointerComparator< ConsumerId > COMPARATOR
Definition ConsumerId.h:59
decaf::lang::PointerComparator< ProducerId > COMPARATOR
Definition ProducerId.h:59
SessionState(Pointer< SessionInfo > info)
Pointer< ProducerState > removeProducer(Pointer< ProducerId > id)
const decaf::util::Collection< Pointer< ConsumerState > > & getConsumerStates() const
Definition SessionState.h:89
void addConsumer(Pointer< ConsumerInfo > info)
void checkShutdown() const
Pointer< ConsumerState > getConsumerState(Pointer< ConsumerId > id)
Definition SessionState.h:93
const Pointer< SessionInfo > getInfo() const
Definition SessionState.h:69
std::string toString() const
Pointer< ConsumerState > removeConsumer(Pointer< ConsumerId > id)
Pointer< ProducerState > getProducerState(Pointer< ProducerId > id)
Definition SessionState.h:85
void addProducer(Pointer< ProducerInfo > info)
const decaf::util::Collection< Pointer< ProducerState > > & getProducerStates() const
Definition SessionState.h:81
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
The root interface in the collection hierarchy.
Definition Collection.h:69
Map template that wraps around a std::map to provide a more user-friendly interface and to provide co...
Definition ConcurrentStlMap.h:51
A boolean value that may be updated atomically.
Definition AtomicBoolean.h:34
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24