Examples of discard()


Examples of org.apache.manifoldcf.core.interfaces.BinaryInput.discard()

        HttpEntity resEntity = res.getEntity();
        return EntityUtils.toString(resEntity);
      }
      finally
      {
        bi.discard();
      }
    } catch (ClientProtocolException e) {
      throw new ManifoldCFException(e);
    } catch (IOException e) {
      handleIOException(e);
View Full Code Here

Examples of org.apache.manifoldcf.core.interfaces.TempFileInput.discard()

    }
    finally
    {
      if (tfi != null)
        tfi.discard();
    }
  }
 
  /** Determine if there are N documents or more.
  */
 
View Full Code Here

Examples of org.apache.qpid.server.ack.UnacknowledgedMessage.discard()

                {
                    _log.debug("Discarding message: " + msg.message.getMessageId());
                }

                //Message has been ack so discard it. This will dequeue and decrement the reference.
                msg.discard(_storeContext);
            }
            else
            {
                _browsedAcks.remove(deliveryTag);
            }
View Full Code Here

Examples of org.apache.qpid.server.queue.QueueEntry.discard()

            {
                _logger.warn("Message's Queue has already been purged, dropping message");
                message = channel.getUnacknowledgedMessageMap().remove(deliveryTag);
                if(message != null)
                {
                    message.discard();
                }
                return;
            }

            if (message.getMessage() == null)
View Full Code Here

Examples of org.apache.qpid.server.queue.QueueEntry.discard()

                        txn.dequeue(Collections.singleton(queueEntry),
                                new ServerTransaction.Action()
                                {
                                    public void postCommit()
                                    {
                                        queueEntry.discard();
                                    }

                                    public void onRollback()
                                    {
                                        //To change body of implemented methods use File | Settings | File Templates.
View Full Code Here

Examples of org.apache.qpid.server.queue.QueueEntry.discard()

                    branch.addPostTransactionAcion(new ServerTransaction.Action()
                    {

                        public void postCommit()
                        {
                            entry.discard();
                        }

                        public void onRollback()
                        {
                            entry.release();
View Full Code Here

Examples of org.apache.qpid.server.queue.QueueEntry.discard()

                        txn.dequeue(Collections.singleton(queueEntry),
                                new ServerTransaction.Action()
                                {
                                    public void postCommit()
                                    {
                                        queueEntry.discard();
                                    }

                                    public void onRollback()
                                    {
                                        //To change body of implemented methods use File | Settings | File Templates.
View Full Code Here

Examples of org.apache.qpid.server.queue.QueueEntry.discard()

            else
            {
                _logger.warn(System.identityHashCode(this) + " Requested requeue of message(" + unacked
                          + "):" + deliveryTag + " but no queue defined and no DeadLetter queue so DROPPING message.");

                unacked.discard();
            }
        }
        else
        {
            _logger.warn("Requested requeue of message:" + deliveryTag + " but no such delivery tag exists."
View Full Code Here

Examples of org.apache.qpid.server.queue.QueueEntry.discard()

            if (altExchange == null)
            {
                _logger.debug("No alternate exchange configured for queue, must discard the message as unable to DLQ: delivery tag: " + deliveryTag);
                _actor.message(_logSubject, ChannelMessages.DISCARDMSG_NOALTEXCH(msg.getMessageNumber(), queue.getName(), msg.getRoutingKey()));
                rejectedQueueEntry.discard();
                return;
            }

            final InboundMessage m = new InboundMessageAdapter(rejectedQueueEntry);
View Full Code Here

Examples of org.apache.qpid.server.queue.QueueEntry.discard()

            if (destinationQueues == null || destinationQueues.isEmpty())
            {
                _logger.debug("Routing process provided no queues to enqueue the message on, must discard message as unable to DLQ: delivery tag: " + deliveryTag);
                _actor.message(_logSubject, ChannelMessages.DISCARDMSG_NOROUTE(msg.getMessageNumber(), altExchange.getName()));
                rejectedQueueEntry.discard();
                return;
            }

            rejectedQueueEntry.routeToAlternate();
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.