Examples of Receiver


Examples of org.eclipse.jdt.internal.compiler.ast.Receiver

    }
    return annotationTypeMemberDeclaration2;
  }

  private void convertAndSetReceiver(AbstractMethodDeclaration method, MethodDeclaration methodDecl) {
    Receiver receiver = method.receiver;
    if (receiver.qualifyingName != null) {
      final SimpleName name = new SimpleName(this.ast);
      name.internalSetIdentifier(new String(receiver.qualifyingName.getName()[0]));
      int start = receiver.qualifyingName.sourceStart;
      int nameEnd = receiver.qualifyingName.sourceEnd;
View Full Code Here

Examples of org.exist.util.serializer.Receiver

                if (v.getImplementationType() == NodeValue.IN_MEMORY_NODE) {
                    ((NodeImpl)v).copyTo(context.getBroker(), docBuilder);
                } else {
                    NodeProxy p = (NodeProxy) v;
                    MatchListener ml = index.getMatchListener(context.getBroker(), p, matchCb);
                    Receiver receiver;
                    if (ml == null)
                        receiver = docBuilder;
                    else {
                        ml.setNextInChain(docBuilder);
                        receiver = ml;
View Full Code Here

Examples of org.jboss.blacktie.jatmibroker.core.transport.Receiver

    synchronized (this) {
      correlationId = ++nextId;
      log.trace("Allocated next sessionId: " + correlationId);
    }
    Transport transport = getTransport(svc);
    Receiver endpoint = transport.createReceiver(correlationId,
        responseMonitor);
    temporaryQueues.put(correlationId, endpoint);
    log.trace("Added a queue for: " + correlationId);
    // TODO HANDLE TRANSACTION
    String type = null;
    String subtype = null;
    int len = 0;
    byte[] data = null;
    if (toSend != null) {
      data = toSend.serialize();
      type = toSend.getType();
      subtype = toSend.getSubtype();
      len = toSend.getLen();
    }

    String timeToLive = properties.getProperty("TimeToLive");
    int ttl = 0;

    if (timeToLive != null) {
      ttl = Integer.parseInt(timeToLive) * 1000;
    }
    transport.getSender(svc, false).send(endpoint.getReplyTo(), (short) 0,
        0, data, len, correlationId, flags, ttl, type, subtype);
    if ((flags & Connection.TPNOREPLY) == Connection.TPNOREPLY) {
      correlationId = 0;
    }
    log.debug("Returning cd: " + correlationId);
View Full Code Here

Examples of org.jboss.messaging.core.Receiver

     
      int initial = target;

      while (true)
      {
         Receiver r = (Receiver)receiversCopy.get(target);

         try
         {
            Delivery d = r.handle(observer, ref, tx);

            if (trace) { log.trace("receiver " + r + " handled " + ref + " and returned " + d); }

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

Examples of org.jboss.messaging.core.Receiver

     
      boolean selectorRejected = false;

      for(Iterator i = receiversCopy.iterator(); i.hasNext(); )
      {
         Receiver receiver = (Receiver)i.next();

         try
         {
            Delivery d = receiver.handle(observer, ref, tx);

            if (trace) { log.trace("receiver " + receiver + " handled " + ref + " and returned " + d); }

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

Examples of org.jboss.messaging.core.contract.Receiver

    * If a channel has a set a receiver and remove is called with a different receiver
    * need to ensure the receiver is not removed (since it doesn't match)
    */
   public void testRemoveDifferentReceiver() throws Exception
   {
      Receiver receiver1 = new SimpleReceiver();
     
      Receiver receiver2 = new SimpleReceiver();
     
      assertFalse(queue.getLocalDistributor().iterator().hasNext());
     
      queue.getLocalDistributor().add(receiver1);
     
View Full Code Here

Examples of org.jboss.messaging.core.contract.Receiver

   // Distributor tests ---------------------------------------------

   public void testAddOneReceiver()
   {
      Receiver r = new SimpleReceiver("ONE");

      assertTrue(queue.getLocalDistributor().add(r));
      assertFalse(queue.getLocalDistributor().add(r));

      assertTrue(queue.getLocalDistributor().contains(r));
View Full Code Here

Examples of org.jboss.messaging.core.contract.Receiver

    * If a channel has a set a receiver and remove is called with a different receiver
    * need to ensure the receiver is not removed (since it doesn't match)
    */
   public void testRemoveDifferentReceiver() throws Exception
   {
      Receiver receiver1 = new SimpleReceiver();

      Receiver receiver2 = new SimpleReceiver();

      assertFalse(queue.getLocalDistributor().iterator().hasNext());

      queue.getLocalDistributor().add(receiver1);

View Full Code Here

Examples of org.jboss.messaging.core.contract.Receiver

   // Distributor tests ---------------------------------------------

   public void testAddOneReceiver()
   {
      Receiver r = new SimpleReceiver("ONE");

      assertTrue(queue.getLocalDistributor().add(r));
      assertFalse(queue.getLocalDistributor().add(r));

      assertTrue(queue.getLocalDistributor().contains(r));
View Full Code Here

Examples of org.jboss.messaging.core.contract.Receiver

     
      boolean selectorRejected = false;

      for(Iterator i = receiversCopy.iterator(); i.hasNext(); )
      {
         Receiver receiver = (Receiver)i.next();

         try
         {
            Delivery d = receiver.handle(observer, ref, tx);

            if (trace) { log.trace("receiver " + receiver + " handled " + ref + " and returned " + d); }

            if (d != 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.