Package org.jboss.jms.client.delegate

Examples of org.jboss.jms.client.delegate.ClientConsumerDelegate


/* 1832 */       advised = new ConsumerAdvised(ep);
/*      */     }
/*      */
/* 1835 */     Dispatcher.instance.registerTarget(consumerID, advised);
/*      */
/* 1837 */     ClientConsumerDelegate stub = new ClientConsumerDelegate(consumerID, prefetchSize, -1, 0L);
/*      */
/* 1840 */     synchronized (this.consumers)
/*      */     {
/* 1842 */       this.consumers.put(consumerID, ep);
/*      */     }
View Full Code Here


/* 2148 */       advised = new ConsumerAdvised(ep);
/*      */     }
/*      */
/* 2151 */     Dispatcher.instance.registerTarget(consumerID, advised);
/*      */
/* 2153 */     ClientConsumerDelegate stub = new ClientConsumerDelegate(consumerID, prefetchSize, maxDeliveryAttemptsToUse, redeliveryDelayToUse);
/*      */
/* 2156 */     synchronized (this.consumers)
/*      */     {
/* 2158 */       this.consumers.put(consumerID, ep);
/*      */     }
View Full Code Here

/* 143 */     return delegate;
/*     */   }
/*     */
/*     */   public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable
/*     */   {
/* 148 */     ClientConsumerDelegate consumerDelegate = (ClientConsumerDelegate)invocation.invokeNext();
/* 149 */     DelegateSupport delegate = consumerDelegate;
/*     */
/* 151 */     SessionState sessionState = (SessionState)getState(invocation);
/*     */
/* 153 */     MethodInvocation mi = (MethodInvocation)invocation;
/* 154 */     JBossDestination dest = (JBossDestination)mi.getArguments()[0];
/* 155 */     String selector = (String)mi.getArguments()[1];
/* 156 */     boolean noLocal = ((Boolean)mi.getArguments()[2]).booleanValue();
/* 157 */     String subscriptionName = (String)mi.getArguments()[3];
/* 158 */     boolean connectionConsumer = ((Boolean)mi.getArguments()[4]).booleanValue();
/*     */
/* 160 */     String consumerID = consumerDelegate.getID();
/* 161 */     int bufferSize = consumerDelegate.getBufferSize();
/* 162 */     int maxDeliveries = consumerDelegate.getMaxDeliveries();
/* 163 */     long redeliveryDelay = consumerDelegate.getRedeliveryDelay();
/*     */
/* 165 */     ConsumerState consumerState = new ConsumerState(sessionState, consumerDelegate, dest, selector, noLocal, subscriptionName, consumerID, connectionConsumer, bufferSize, maxDeliveries, redeliveryDelay);
/*     */
/* 170 */     delegate.setState(consumerState);
/* 171 */     return consumerDelegate;
View Full Code Here

/* 222 */       HierarchicalState child = (HierarchicalState)i.next();
/*     */
/* 224 */       if ((child instanceof ConsumerState))
/*     */       {
/* 226 */         ConsumerState consState = (ConsumerState)child;
/* 227 */         ClientConsumerDelegate consDelegate = (ClientConsumerDelegate)consState.getDelegate();
/*     */
/* 230 */         ClientConsumerDelegate newConsDelegate = (ClientConsumerDelegate)newDelegate.createConsumerDelegate(consState.getDestination(), consState.getSelector(), consState.isNoLocal(), consState.getSubscriptionName(), consState.isConnectionConsumer(), true);
/*     */
/* 236 */         log.trace(this + " created new consumer " + newConsDelegate);
/*     */
/* 238 */         consDelegate.synchronizeWith(newConsDelegate);
/* 239 */         log.trace(this + " synchronized failover consumer " + consDelegate);
View Full Code Here

/* 65 */     os.flush();
/*    */   }
/*    */
/*    */   public void read(DataInputStream is) throws Exception
/*    */   {
/* 70 */     this.del = new ClientConsumerDelegate();
/*    */
/* 72 */     this.del.read(is);
/*    */   }
View Full Code Here

     
      // Session
     
      public void testSessionCreateConsumerDelegateResponse() throws Exception
      {
         ClientConsumerDelegate del = new ClientConsumerDelegate("786", 13123, 213, 0);
        
         ResponseSupport resp =
            new SessionCreateConsumerDelegateResponse(del);
                
         testPacket(resp, PacketSupport.RESP_SESSION_CREATECONSUMERDELEGATE);                          
View Full Code Here

         advised = new ConsumerAdvised(ep);
      }
     
      Dispatcher.instance.registerTarget(consumerID, advised);
     
      ClientConsumerDelegate stub =
         new ClientConsumerDelegate(consumerID, prefetchSize, -1, 0);
     
      synchronized (consumers)
      {
         consumers.put(consumerID, ep);
      }
View Full Code Here

         advised = new ConsumerAdvised(ep);
      }
     
      Dispatcher.instance.registerTarget(consumerID, advised);
     
      ClientConsumerDelegate stub =
         new ClientConsumerDelegate(consumerID, prefetchSize, maxDeliveryAttemptsToUse, redeliveryDelayToUse);
     
      synchronized (consumers)
      {
         consumers.put(consumerID, ep);
      }
View Full Code Here

         HierarchicalState child = (HierarchicalState)i.next();

         if (child instanceof ConsumerState)
         {
            ConsumerState consState = (ConsumerState)child;
            ClientConsumerDelegate consDelegate = (ClientConsumerDelegate)consState.getDelegate();

            // create a new consumer over the new session for each consumer on the old session
            ClientConsumerDelegate newConsDelegate = (ClientConsumerDelegate)newDelegate.
               createConsumerDelegate((JBossDestination)consState.getDestination(),
                                      consState.getSelector(),
                                      consState.isNoLocal(),
                                      consState.getSubscriptionName(),
                                      consState.isConnectionConsumer(), true);
View Full Code Here

TOP

Related Classes of org.jboss.jms.client.delegate.ClientConsumerDelegate

Copyright © 2018 www.massapicom. 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.