if (message.containsProperty(ClientConsumerImpl.FORCED_DELIVERY_MESSAGE)) { boolean expired = message.isExpired(); if (message.isLargeMessage()) { message.discardBody();
private void handleRegularMessage(ClientMessageInternal message) { if (message.getAddress() == null) { message.setAddress(queueInfo.getAddress()); } message.onReceipt(this); if (!ackIndividually && message.getPriority() != 4 && !message.containsProperty(ClientConsumerImpl.FORCED_DELIVERY_MESSAGE)) { // We have messages of different priorities so we need to ack them individually since the order // of them in the ServerConsumerImpl delivery list might not be the same as the order they are // consumed in, which means that acking all up to won't work ackIndividually = true; } // Add it to the buffer buffer.addTail(message, message.getPriority()); if (handler != null) { // Execute using executor if (!stopped) { queueExecutor(); } } else { notify(); } }
public void retrieveExistingData(ClientMessageInternal clMessage) { this.messageID = clMessage.getMessageID(); this.address = clMessage.getAddressSimpleString(); this.setUserID(clMessage.getUserID()); this.setFlowControlSize(clMessage.getFlowControlSize()); this.setDeliveryCount(clMessage.getDeliveryCount()); this.type = clMessage.getType(); this.durable = clMessage.isDurable(); this.setExpiration(clMessage.getExpiration()); this.timestamp = clMessage.getTimestamp(); this.priority = clMessage.getPriority(); this.properties = clMessage.getProperties(); this.largeMessageSize = clMessage.getLongProperty(HDR_LARGE_BODY_SIZE); } }
/** * @param message * @throws ActiveMQException */ private void flowControlBeforeConsumption(final ClientMessageInternal message) throws ActiveMQException { // Chunk messages will execute the flow control while receiving the chunks if (message.getFlowControlSize() != 0) { // on large messages we should discount 1 on the first packets as we need continuity until the last packet flowControl(message.getFlowControlSize(), !message.isLargeMessage()); } }
@Override public synchronized void handleMessage(final ClientMessageInternal message) throws Exception { if (closing) { // This is ok - we just ignore the message return; } if (message.getBooleanProperty(Message.HDR_LARGE_COMPRESSED)) { handleCompressedMessage(message); } else { handleRegularMessage(message); } }
/** * @param message * @throws ActiveMQException */ private void flowControlBeforeConsumption(final ClientMessageInternal message) throws ActiveMQException { // Chunk messages will execute the flow control while receiving the chunks if (message.getFlowControlSize() != 0) { // on large messages we should discount 1 on the first packets as we need continuity until the last packet flowControl(message.getFlowControlSize(), !message.isLargeMessage()); } }
@Override public synchronized void handleMessage(final ClientMessageInternal message) throws Exception { if (closing) { // This is ok - we just ignore the message return; } if (message.getBooleanProperty(Message.HDR_LARGE_COMPRESSED)) { handleCompressedMessage(message); } else { handleRegularMessage(message); } }
public void retrieveExistingData(ClientMessageInternal clMessage) { this.messageID = clMessage.getMessageID(); this.address = clMessage.getAddressSimpleString(); this.setUserID(clMessage.getUserID()); this.setFlowControlSize(clMessage.getFlowControlSize()); this.setDeliveryCount(clMessage.getDeliveryCount()); this.type = clMessage.getType(); this.durable = clMessage.isDurable(); this.setExpiration(clMessage.getExpiration()); this.timestamp = clMessage.getTimestamp(); this.priority = clMessage.getPriority(); this.properties = clMessage.getProperties(); this.largeMessageSize = clMessage.getLongProperty(HDR_LARGE_BODY_SIZE); } }
largeMessageReceived.discardBody(); largeMessageReceived = null; session.workDone(); if (m.containsProperty(ClientConsumerImpl.FORCED_DELIVERY_MESSAGE)) { long seq = m.getLongProperty(ClientConsumerImpl.FORCED_DELIVERY_MESSAGE); boolean expired = m.isExpired(); m.discardBody(); if (m.isLargeMessage()) { largeMessageReceived = m;
private void handleRegularMessage(ClientMessageInternal message) { if (message.getAddress() == null) { message.setAddress(queueInfo.getAddress()); } message.onReceipt(this); if (!ackIndividually && message.getPriority() != 4 && !message.containsProperty(ClientConsumerImpl.FORCED_DELIVERY_MESSAGE)) { // We have messages of different priorities so we need to ack them individually since the order // of them in the ServerConsumerImpl delivery list might not be the same as the order they are // consumed in, which means that acking all up to won't work ackIndividually = true; } // Add it to the buffer buffer.addTail(message, message.getPriority()); if (handler != null) { // Execute using executor if (!stopped) { queueExecutor(); } } else { notify(); } }
/** * @param message * @throws ActiveMQException */ private void flowControlBeforeConsumption(final ClientMessageInternal message) throws ActiveMQException { // Chunk messages will execute the flow control while receiving the chunks if (message.getFlowControlSize() != 0) { // on large messages we should discount 1 on the first packets as we need continuity until the last packet flowControl(message.getFlowControlSize(), !message.isLargeMessage()); } }
@Override public synchronized void handleMessage(final ClientMessageInternal message) throws Exception { if (closing) { // This is ok - we just ignore the message return; } if (message.getBooleanProperty(Message.HDR_LARGE_COMPRESSED)) { handleCompressedMessage(message); } else { handleRegularMessage(message); } }
public void retrieveExistingData(ClientMessageInternal clMessage) { this.messageID = clMessage.getMessageID(); this.address = clMessage.getAddressSimpleString(); this.setUserID(clMessage.getUserID()); this.setFlowControlSize(clMessage.getFlowControlSize()); this.setDeliveryCount(clMessage.getDeliveryCount()); this.type = clMessage.getType(); this.durable = clMessage.isDurable(); this.setExpiration(clMessage.getExpiration()); this.timestamp = clMessage.getTimestamp(); this.priority = clMessage.getPriority(); this.properties = clMessage.getProperties(); this.largeMessageSize = clMessage.getLongProperty(HDR_LARGE_BODY_SIZE); } }
if (message.containsProperty(ClientConsumerImpl.FORCED_DELIVERY_MESSAGE)) { boolean expired = message.isExpired(); if (message.isLargeMessage()) { message.discardBody();
private void handleRegularMessage(ClientMessageInternal message) { if (message.getAddress() == null) { message.setAddress(queueInfo.getAddress()); } message.onReceipt(this); if (!ackIndividually && message.getPriority() != 4 && !message.containsProperty(ClientConsumerImpl.FORCED_DELIVERY_MESSAGE)) { // We have messages of different priorities so we need to ack them individually since the order // of them in the ServerConsumerImpl delivery list might not be the same as the order they are // consumed in, which means that acking all up to won't work ackIndividually = true; } // Add it to the buffer buffer.addTail(message, message.getPriority()); if (handler != null) { // Execute using executor if (!stopped) { queueExecutor(); } } else { notify(); } }
/** * @param message * @throws ActiveMQException */ private void flowControlBeforeConsumption(final ClientMessageInternal message) throws ActiveMQException { // Chunk messages will execute the flow control while receiving the chunks if (message.getFlowControlSize() != 0) { // on large messages we should discount 1 on the first packets as we need continuity until the last packet flowControl(message.getFlowControlSize(), !message.isLargeMessage()); } }
@Override public synchronized void handleMessage(final ClientMessageInternal message) throws Exception { if (closing) { // This is ok - we just ignore the message return; } if (message.getBooleanProperty(Message.HDR_LARGE_COMPRESSED)) { handleCompressedMessage(message); } else { handleRegularMessage(message); } }
public void retrieveExistingData(ClientMessageInternal clMessage) { this.messageID = clMessage.getMessageID(); this.address = clMessage.getAddressSimpleString(); this.setUserID(clMessage.getUserID()); this.setFlowControlSize(clMessage.getFlowControlSize()); this.setDeliveryCount(clMessage.getDeliveryCount()); this.type = clMessage.getType(); this.durable = clMessage.isDurable(); this.setExpiration(clMessage.getExpiration()); this.timestamp = clMessage.getTimestamp(); this.priority = clMessage.getPriority(); this.properties = clMessage.getProperties(); this.largeMessageSize = clMessage.getLongProperty(HDR_LARGE_BODY_SIZE); } }
if (message.containsProperty(ClientConsumerImpl.FORCED_DELIVERY_MESSAGE)) { boolean expired = message.isExpired(); if (message.isLargeMessage()) { message.discardBody();
private void handleRegularMessage(ClientMessageInternal message) { if (message.getAddress() == null) { message.setAddress(queueInfo.getAddress()); } message.onReceipt(this); if (!ackIndividually && message.getPriority() != 4 && !message.containsProperty(ClientConsumerImpl.FORCED_DELIVERY_MESSAGE)) { // We have messages of different priorities so we need to ack them individually since the order // of them in the ServerConsumerImpl delivery list might not be the same as the order they are // consumed in, which means that acking all up to won't work ackIndividually = true; } // Add it to the buffer buffer.addTail(message, message.getPriority()); if (handler != null) { // Execute using executor if (!stopped) { queueExecutor(); } } else { notify(); } }