summaryrefslogtreecommitdiff
path: root/qpid/java/broker-plugins/amqp-0-8-protocol/src/main/java/org/apache/qpid/server/protocol/v0_8/AMQChannel.java
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/java/broker-plugins/amqp-0-8-protocol/src/main/java/org/apache/qpid/server/protocol/v0_8/AMQChannel.java')
-rw-r--r--qpid/java/broker-plugins/amqp-0-8-protocol/src/main/java/org/apache/qpid/server/protocol/v0_8/AMQChannel.java61
1 files changed, 0 insertions, 61 deletions
diff --git a/qpid/java/broker-plugins/amqp-0-8-protocol/src/main/java/org/apache/qpid/server/protocol/v0_8/AMQChannel.java b/qpid/java/broker-plugins/amqp-0-8-protocol/src/main/java/org/apache/qpid/server/protocol/v0_8/AMQChannel.java
index c6d4151628..e139887284 100644
--- a/qpid/java/broker-plugins/amqp-0-8-protocol/src/main/java/org/apache/qpid/server/protocol/v0_8/AMQChannel.java
+++ b/qpid/java/broker-plugins/amqp-0-8-protocol/src/main/java/org/apache/qpid/server/protocol/v0_8/AMQChannel.java
@@ -1233,68 +1233,7 @@ public class AMQChannel implements AMQSessionModel, AsyncAutoCommitTransaction.F
return getId().compareTo(o.getId());
}
- private class MessageDeliveryAction implements ServerTransaction.Action
- {
- private final MessageReference<AMQMessage> _reference;
- private List<? extends BaseQueue> _destinationQueues;
-
- public MessageDeliveryAction(AMQMessage currentMessage,
- List<? extends BaseQueue> destinationQueues)
- {
- _reference = currentMessage.newReference();
- _destinationQueues = destinationQueues;
- }
-
- public void postCommit()
- {
- try
- {
- AMQMessage message = _reference.getMessage();
- final boolean immediate = message.isImmediate();
-
- for(int i = 0; i < _destinationQueues.size(); i++)
- {
- BaseQueue queue = _destinationQueues.get(i);
-
- BaseQueue.PostEnqueueAction action;
-
- if(immediate)
- {
- action = new ImmediateAction();
- }
- else
- {
- action = null;
- }
-
- queue.enqueue(message, isTransactional(), action);
- if(queue instanceof AMQQueue)
- {
- ((AMQQueue)queue).checkCapacity(AMQChannel.this);
- }
-
- }
-
- message.getStoredMessage().flushToStore();
- _reference.release();
- }
- catch (AMQException e)
- {
- // TODO
- throw new RuntimeException(e);
- }
- }
-
- public void onRollback()
- {
- // Maybe keep track of entries that were created and then delete them here in case of failure
- // to in memory enqueue
- _reference.release();
- }
-
-
- }
private class ImmediateAction implements BaseQueue.PostEnqueueAction
{