1 18 package org.apache.activemq.advisory; 19 20 import org.apache.activemq.command.ActiveMQDestination; 21 import org.apache.activemq.command.ProducerInfo; 22 23 28 public class ProducerStartedEvent extends ProducerEvent { 29 30 private static final long serialVersionUID = 5088138839609391074L; 31 32 private final ProducerInfo consumerInfo; 33 34 public ProducerStartedEvent(ProducerEventSource source, ActiveMQDestination destination, ProducerInfo consumerInfo, int count) { 35 super(source, destination, consumerInfo.getProducerId(), count); 36 this.consumerInfo = consumerInfo; 37 } 38 39 public boolean isStarted() { 40 return true; 41 } 42 43 46 public ProducerInfo getProducerInfo() { 47 return consumerInfo; 48 } 49 } 50 | Popular Tags |