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