@Override public void createAddress(final SimpleString address, EnumSet<RoutingType> routingTypes, boolean autoCreated) throws ActiveMQException { checkClosed(); startCall(); try { sessionContext.createAddress(address, routingTypes, autoCreated); } finally { endCall(); } }
@Override public void deleteQueue(final SimpleString queueName) throws ActiveMQException { checkClosed(); startCall(); try { sessionContext.deleteQueue(queueName); } finally { endCall(); } }
@Override public QueueQuery queueQuery(final SimpleString queueName) throws ActiveMQException { checkClosed(); startCall(); try { return sessionContext.queueQuery(queueName); } finally { endCall(); } }
@Override public void individualAcknowledge(final ClientConsumer consumer, final Message message) throws ActiveMQException { // if we're pre-acknowledging then we don't need to do anything if (preAcknowledge) { return; } checkClosed(); startCall(); try { sessionContext.sendACK(true, blockOnAcknowledge, consumer, message); } finally { endCall(); } }
/** * Creates Shared queue. A queue that will exist as long as there are consumers or is durable. * * @param address the queue will be bound to this address * @param routingType the delivery mode for this queue, MULTICAST or ANYCAST * @param queueName the name of the queue * @param filter whether the queue is durable or not * @param durable if the queue is durable * @param maxConsumers how many concurrent consumers will be allowed on this queue * @param purgeOnNoConsumers whether to delete the contents of the queue when the last consumer disconnects * @param exclusive if the queue is exclusive queue * @param lastValue if the queue is last value queue * @throws ActiveMQException in an exception occurs while creating the queue */ @Override public void createSharedQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean lastValue) throws ActiveMQException { checkClosed(); startCall(); try { sessionContext.createSharedQueue(address, queueName, routingType, filter, durable, maxConsumers, purgeOnNoConsumers, exclusive, lastValue); } finally { endCall(); } }
/** * Acknowledges all messages received by the consumer so far. */ @Override public void acknowledge(final ClientConsumer consumer, final Message message) throws ActiveMQException { // if we're pre-acknowledging then we don't need to do anything if (preAcknowledge) { return; } checkClosed(); if (logger.isDebugEnabled()) { logger.debug("client ack messageID = " + message.getMessageID()); } startCall(); try { sessionContext.sendACK(false, blockOnAcknowledge, consumer, message); } finally { endCall(); } }
@Override public void forget(final Xid xid) throws XAException { checkXA(); startCall(); try { sessionContext.xaForget(xid); } catch (XAException xae) { throw xae; } catch (Throwable t) { // This could occur if the TM interrupts the thread XAException xaException = new XAException(XAException.XAER_RMFAIL); xaException.initCause(t); throw xaException; } finally { endCall(); } }
lastValue); } finally { endCall();
throw xaException; } finally { endCall();
sessionContext.xaEnd(xid, flags); } finally { endCall();
throw xaException; } finally { endCall();
@Override public QueueQuery queueQuery(final SimpleString queueName) throws ActiveMQException { checkClosed(); startCall(); try { return sessionContext.queueQuery(queueName); } finally { endCall(); } }
@Override public QueueQuery queueQuery(final SimpleString queueName) throws ActiveMQException { checkClosed(); startCall(); try { return sessionContext.queueQuery(queueName); } finally { endCall(); } }
@Override public QueueQuery queueQuery(final SimpleString queueName) throws ActiveMQException { checkClosed(); startCall(); try { return sessionContext.queueQuery(queueName); } finally { endCall(); } }
@Override public void deleteQueue(final SimpleString queueName) throws ActiveMQException { checkClosed(); startCall(); try { sessionContext.deleteQueue(queueName); } finally { endCall(); } }
@Override public void deleteQueue(final SimpleString queueName) throws ActiveMQException { checkClosed(); startCall(); try { sessionContext.deleteQueue(queueName); } finally { endCall(); } }
@Override public void deleteQueue(final SimpleString queueName) throws ActiveMQException { checkClosed(); startCall(); try { sessionContext.deleteQueue(queueName); } finally { endCall(); } }
@Override public void createAddress(final SimpleString address, EnumSet<RoutingType> routingTypes, boolean autoCreated) throws ActiveMQException { checkClosed(); startCall(); try { sessionContext.createAddress(address, routingTypes, autoCreated); } finally { endCall(); } }
@Override public void deleteQueue(final SimpleString queueName) throws ActiveMQException { checkClosed(); startCall(); try { sessionContext.deleteQueue(queueName); } finally { endCall(); } }
@Override public void createAddress(final SimpleString address, EnumSet<RoutingType> routingTypes, boolean autoCreated) throws ActiveMQException { checkClosed(); startCall(); try { sessionContext.createAddress(address, routingTypes, autoCreated); } finally { endCall(); } }