Examples of MessageRejectedException


Examples of com.sun.sgs.app.MessageRejectedException

      boolean notifyServiceEventQueue = true;
     
      int cost = event.getCost();
      if (cost > writeBufferAvailable) {
          throw new MessageRejectedException(
              "Not enough queue space: " + writeBufferAvailable +
        " bytes available, " + cost + " requested");
      }
     
      if (channel.isCoordinator() && isEmpty()) {
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.jms.MessageRejectedException

            if (action.getOutcome() instanceof Rejected)
            {
                Error err = ((Rejected) action.getOutcome()).getError();
                if(err != null)
                {
                    throw new MessageRejectedException(err.getDescription(), err.getCondition().toString());
                }
                else
                {
                    throw new MessageRejectedException("Message was rejected: " + action.getOutcome());
                }
            }
            else
            {
                throw new MessageRejectedException("Message was not accepted.  Outcome was: " + action.getOutcome());
            }
        }

        if(getDestination() != null)
        {
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.jms.MessageRejectedException

            throw jmsException;
        }

        if(_syncPublish && !action.wasAccepted(_syncPublishTimeout + System.currentTimeMillis()))
        {
            throw new MessageRejectedException("Message was rejected");
        }

        if(getDestination() != null)
        {
            message.setJMSDestination(getDestination());
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.jms.MessageRejectedException

            if (action.getOutcome() instanceof Rejected)
            {
                Error err = ((Rejected) action.getOutcome()).getError();
                if(err != null)
                {
                    throw new MessageRejectedException(err.getDescription(), err.getCondition().toString());
                }
                else
                {
                    throw new MessageRejectedException("Message was rejected: " + action.getOutcome());
                }
            }
            else
            {
                throw new MessageRejectedException("Message was not accepted.  Outcome was: " + action.getOutcome());
            }
        }

        if(getDestination() != null)
        {
View Full Code Here

Examples of org.springframework.integration.MessageRejectedException

    public void handleMessage(Message<?> message) {
        Class<?> eventType = message.getPayload().getClass();
        if (filter.accept(eventType)) {
            eventBus.publish(new GenericEventMessage(message.getPayload(), message.getHeaders()));
        } else {
            throw new MessageRejectedException(message, String.format(
                    "The event of type [%s] was blocked by the filter.",
                    eventType.getSimpleName()));
        }
    }
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.