this.connectionConsumers = new CopyOnWriteArrayList();
this.connectionMetaData = new ActiveMQConnectionMetaData();
this.started = new SynchronizedBoolean(false);
this.startTime = System.currentTimeMillis();
this.prefetchPolicy = new ActiveMQPrefetchPolicy();
this.memoryManager = new MemoryBoundedObjectManager(clientID, DEFAULT_CONNECTION_MEMORY_LIMIT);
this.boundedQueueManager = new MemoryBoundedQueueManager(memoryManager);
this.memoryManager.addCapacityEventListener(this);
boolean transactional = this instanceof XAConnection;
factoryStats = factory.getFactoryStats();
factoryStats.addConnection(this);