Package com.cloudhopper.mq.message

Examples of com.cloudhopper.mq.message.PriorityMQMessage.key()


  // nothing
    }

    @Override protected PriorityMQMessage<E> doTake() throws QueueInvalidStateException, QueueFatalException, QueueTimeoutException, DataStoreFatalException {
  PriorityMQMessage w = queue.peek();
  long itemId = w.key();
  byte[] key = priorityKeyUtil.encode(getId(), itemId);
  try {
      ds.deleteRecord(key);
  } catch (RecordNotFoundException e) {
      logger.error("Key not found in DataStore for queueId=" + getId() + ", itemId=" + itemId, e);
View Full Code Here


    }

    @Override
    protected PriorityMQMessage<E> doTake() {
  PriorityMQMessage w = queue.peek();
  long itemId = w.key();
  logger.trace("[{}] itemId={} in queue.take()", getName(), itemId);
  byte[] key = priorityKeyUtil.encode(getId(), itemId);
  try {
      ds.deleteRecord(key);
  } catch (RecordNotFoundException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.