Examples of SessionEndpoint


Examples of org.apache.qpid.amqp_1_0.transport.SessionEndpoint

                                                         final Source source,
                                                         AcknowledgeMode mode,
                                                         Map<Binary, Outcome> unsettled,
                                                         final DeliveryStateHandler deliveryStateHandler)
    {
      SessionEndpoint endpoint = this.getEndpoint();
      synchronized(endpoint.getLock())
      {
            SendingLinkEndpoint link = endpoint.createSendingLinkEndpoint(linkName, source, target,
                                                                          unsettled, deliveryStateHandler);
           
            switch(mode)
            {
                case ALO:
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.transport.SessionEndpoint

                                                         final Source source,
                                                         AcknowledgeMode mode,
                                                         Map<Binary, Outcome> unsettled,
                                                         final DeliveryStateHandler deliveryStateHandler)
    {
      SessionEndpoint endpoint = this.getEndpoint();
      synchronized(endpoint.getLock())
      {
            SendingLinkEndpoint link = endpoint.createSendingLinkEndpoint(linkName, source, target,
                                                                          unsettled, deliveryStateHandler);
           
            switch(mode)
            {
                case ALO:
View Full Code Here

Examples of org.jboss.jms.delegate.SessionEndpoint

      autoFlowControl = is.readBoolean();
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      SessionEndpoint endpoint =
         (SessionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      return new SessionCreateConsumerDelegateResponse((ClientConsumerDelegate)endpoint.createConsumerDelegate(dest, selector, noLocal, subName, connectionConsumer, autoFlowControl));
   }
View Full Code Here

Examples of org.jboss.jms.delegate.SessionEndpoint

      sessionID = is.readUTF();
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      SessionEndpoint endpoint =
         (SessionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      endpoint.recoverDeliveries(dels, sessionID);
     
      return null;
   }
View Full Code Here

Examples of org.jboss.jms.delegate.SessionEndpoint

      dest = JBossDestination.readDestination(is);     
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      SessionEndpoint endpoint =
         (SessionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      endpoint.addTemporaryDestination(dest);
     
      return null;
   }
View Full Code Here

Examples of org.jboss.jms.delegate.SessionEndpoint

      selector = readNullableString(is);
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      SessionEndpoint endpoint =
         (SessionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      return new SessionCreateBrowserDelegateResponse((ClientBrowserDelegate)endpoint.createBrowserDelegate(dest, selector));
   }
View Full Code Here

Examples of org.jboss.jms.delegate.SessionEndpoint

      dest = JBossDestination.readDestination(is);     
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      SessionEndpoint endpoint =
         (SessionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      endpoint.deleteTemporaryDestination(dest);
     
      return null;
   }
View Full Code Here

Examples of org.jboss.jms.delegate.SessionEndpoint

      ack = new DefaultAck(deliveryId);
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      SessionEndpoint endpoint =
         (SessionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      boolean res = endpoint.acknowledgeDelivery(ack);
     
      return new SessionAcknowledgeDeliveryResponse(res);
   }
View Full Code Here

Examples of org.jboss.jms.delegate.SessionEndpoint

      cancel = new DefaultCancel(deliveryId, deliveryCount, expired, reachedMax);     
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      SessionEndpoint endpoint =
         (SessionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      endpoint.cancelDelivery(cancel);
     
      return null;
   }
View Full Code Here

Examples of org.jboss.jms.delegate.SessionEndpoint

      }
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      SessionEndpoint endpoint =
         (SessionEndpoint)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      endpoint.acknowledgeDeliveries(acks);
     
      return null;
   }
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.