public static ActiveMQTopic getSlowConsumerAdvisoryTopic(ActiveMQDestination destination) { String name = SLOW_CONSUMER_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }
public MessageAck(MessageDispatch md, byte ackType, int messageCount) { this.ackType = ackType; this.consumerId = md.getConsumerId(); this.destination = md.getDestination(); this.lastMessageId = md.getMessage().getMessageId(); this.messageCount = messageCount; }
/** * @param message */ public IndirectMessageReference(final Message message) { this.message = message; this.messageId = message.getMessageId().copy(); message.getMessageId(); message.getGroupID(); message.getGroupSequence(); }
/** * @return the destination name */ @Override public String getDestinationName() { return subscriptionInfo.getDestination().getPhysicalName(); }
public RemoveInfo createRemoveCommand() { RemoveInfo command = new RemoveInfo(getProducerId()); command.setResponseRequired(isResponseRequired()); return command; }
public RemoveInfo createRemoveCommand() { RemoveInfo command = new RemoveInfo(getSessionId()); command.setResponseRequired(isResponseRequired()); return command; }
@Override public Object evaluate(Message message) { if (message.getMessageId() == null) { return null; } return message.getMessageId().toString(); } });
@Override public String getJMSMessageID() { MessageId messageId = this.getMessageId(); if (messageId == null) { return null; } return messageId.toString(); }
@Override public void run() { // jdbc close or jms commit - while futureOrSequenceLong==null ordered // work will remain pending on the Queue message.getMessageId().setFutureOrSequenceLong(sequence); } });
@Override public long getSessionId() { if (info != null) { return info.getProducerId().getSessionId(); } return 0; }
@Override public void onSend() throws JMSException { super.onSend(); storeContent(); }
@Override public void onSend() throws JMSException { super.onSend(); storeContent(); }
private void copy(ActiveMQStreamMessage copy) { storeContent(); super.copy(copy); copy.dataOut = null; copy.bytesOut = null; copy.dataIn = null; }
private void copy(ActiveMQBytesMessage copy) { storeContent(); super.copy(copy); copy.dataOut = null; copy.bytesOut = null; copy.dataIn = null; }
@Override public String toString(Map<String, Object>overrideFields) { try { getProperties(); } catch (IOException e) { } return super.toString(overrideFields); }
@Override public void beforeMarshall(WireFormat wireFormat) throws IOException { super.beforeMarshall(wireFormat); // may have initiated on vm transport with deferred marshalling storeContent(); }
public static ActiveMQTopic getFastProducerAdvisoryTopic(ActiveMQDestination destination) { String name = FAST_PRODUCER_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }
public static ActiveMQTopic getFullAdvisoryTopic(ActiveMQDestination destination) { String name = FULL_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "." + destination.getPhysicalName(); return new ActiveMQTopic(name); }