Tabnine Logo
org.apache.activemq.command
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.activemq.command

Best Java code snippets using org.apache.activemq.command (Showing top 20 results out of 441)

origin: apache/activemq

public static ActiveMQTopic getSlowConsumerAdvisoryTopic(ActiveMQDestination destination) {
  String name = SLOW_CONSUMER_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "."
      + destination.getPhysicalName();
  return new ActiveMQTopic(name);
}
origin: apache/activemq

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;
}
origin: apache/activemq

/**
 * @param message
 */
public IndirectMessageReference(final Message message) {
  this.message = message;
  this.messageId = message.getMessageId().copy();
  message.getMessageId();
  message.getGroupID();
  message.getGroupSequence();
}
origin: apache/activemq

/**
 * @return the destination name
 */
@Override
public String getDestinationName() {
  return subscriptionInfo.getDestination().getPhysicalName();
}
origin: apache/activemq

public RemoveInfo createRemoveCommand() {
  RemoveInfo command = new RemoveInfo(getProducerId());
  command.setResponseRequired(isResponseRequired());
  return command;
}
origin: apache/activemq

public RemoveInfo createRemoveCommand() {
  RemoveInfo command = new RemoveInfo(getSessionId());
  command.setResponseRequired(isResponseRequired());
  return command;
}
origin: apache/activemq

  @Override
  public Object evaluate(Message message) {
    if (message.getMessageId() == null) {
      return null;
    }
    return message.getMessageId().toString();
  }
});
origin: apache/activemq

@Override
public boolean equals(Object obj) {
  if (obj == this) {
    return true;
  }
  return obj instanceof AsyncJobKey && id.equals(((AsyncJobKey) obj).id)
      && destination.equals(((AsyncJobKey) obj).destination);
}
origin: apache/activemq

@Override
public String getJMSMessageID() {
  MessageId messageId = this.getMessageId();
  if (messageId == null) {
    return null;
  }
  return messageId.toString();
}
origin: apache/activemq

  @Override
  public void run() {
    // jdbc close or jms commit - while futureOrSequenceLong==null ordered
    // work will remain pending on the Queue
    message.getMessageId().setFutureOrSequenceLong(sequence);
  }
});
origin: apache/activemq

@Override
public long getSessionId() {
  if (info != null) {
    return info.getProducerId().getSessionId();
  }
  return 0;
}
origin: apache/activemq

public String toProducerKey() {
  if (textView == null) {
    return toString();
  } else {
    return producerId.toString() + ":" + producerSequenceId;
  }
}
origin: apache/activemq

@Override
public void onSend() throws JMSException {
  super.onSend();
  storeContent();
}
origin: apache/activemq

@Override
public void onSend() throws JMSException {
  super.onSend();
  storeContent();
}
origin: apache/activemq

private void copy(ActiveMQStreamMessage copy) {
  storeContent();
  super.copy(copy);
  copy.dataOut = null;
  copy.bytesOut = null;
  copy.dataIn = null;
}
origin: apache/activemq

private void copy(ActiveMQBytesMessage copy) {
  storeContent();
  super.copy(copy);
  copy.dataOut = null;
  copy.bytesOut = null;
  copy.dataIn = null;
}
origin: apache/activemq

@Override
public String toString(Map<String, Object>overrideFields) {
  try {
    getProperties();
  } catch (IOException e) {
  }
  return super.toString(overrideFields);
}
origin: apache/activemq

@Override
public void beforeMarshall(WireFormat wireFormat) throws IOException {
  super.beforeMarshall(wireFormat);
  // may have initiated on vm transport with deferred marshalling
  storeContent();
}
origin: apache/activemq

public static ActiveMQTopic getFastProducerAdvisoryTopic(ActiveMQDestination destination) {
  String name = FAST_PRODUCER_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "."
      + destination.getPhysicalName();
  return new ActiveMQTopic(name);
}
origin: apache/activemq

public static ActiveMQTopic getFullAdvisoryTopic(ActiveMQDestination destination) {
  String name = FULL_TOPIC_PREFIX + destination.getDestinationTypeAsString() + "."
      + destination.getPhysicalName();
  return new ActiveMQTopic(name);
}
org.apache.activemq.command

Most used classes

  • ActiveMQQueue
  • ActiveMQTopic
  • ActiveMQDestination
  • ActiveMQMessage
  • Message
    Represents an ActiveMQ message
  • ActiveMQTextMessage,
  • ConsumerInfo,
  • ActiveMQMapMessage,
  • ActiveMQBytesMessage,
  • ConnectionId,
  • ActiveMQObjectMessage,
  • MessageId,
  • ConsumerId,
  • DestinationInfo,
  • MessageAck,
  • MessageDispatch,
  • ProducerInfo,
  • ActiveMQTempQueue,
  • ExceptionResponse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now