Examples of cancel()


Examples of org.jboss.forge.addon.resource.monitor.ResourceMonitor.cancel()

               finally
               {
                  caches.release(cache);
               }
            }
            monitor.cancel();
         }
      });

      this.listeners.add(registration);
   }
View Full Code Here

Examples of org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler.cancel()

         if (requestType.equals(WSTrustConstants.ISSUE_REQUEST))
            return this.marshallResponse(handler.issue(request, this.context.getUserPrincipal()));
         else if (requestType.equals(WSTrustConstants.RENEW_REQUEST))
            return this.marshallResponse(handler.renew(request, this.context.getUserPrincipal()));
         else if (requestType.equals(WSTrustConstants.CANCEL_REQUEST))
            return this.marshallResponse(handler.cancel(request, this.context.getUserPrincipal()));
         else if (requestType.equals(WSTrustConstants.VALIDATE_REQUEST))
            return this.marshallResponse(handler.validate(request, this.context.getUserPrincipal()));
         else
            throw new WSTrustException("Invalid request type: " + requestType);
      }
View Full Code Here

Examples of org.jboss.identity.federation.core.wstrust.WSTrustRequestHandler.cancel()

        
        
         else if (requestType.equals(WSTrustConstants.RENEW_REQUEST))
            return this.marshallResponse(handler.renew(request, this.context.getUserPrincipal()));
         else if (requestType.equals(WSTrustConstants.CANCEL_REQUEST))
            return this.marshallResponse(handler.cancel(request, this.context.getUserPrincipal()));
         else if (requestType.equals(WSTrustConstants.VALIDATE_REQUEST))
            return this.marshallResponse(handler.validate(request, this.context.getUserPrincipal()));
         else
            throw new WSTrustException("Invalid request type: " + requestType);
      }
View Full Code Here

Examples of org.jboss.messaging.core.Delivery.cancel()

         if (rec.redeliveryDelay != 0)
         {
            del.getReference().setScheduledDeliveryTime(System.currentTimeMillis() + rec.redeliveryDelay);
         }
        
         del.cancel();
      }
      else
      {                 
         if (expired)
         {
View Full Code Here

Examples of org.jboss.messaging.core.contract.Delivery.cancel()

         {
            del.getReference().setScheduledDeliveryTime(System.currentTimeMillis() + rec.redeliveryDelay);
         }

         if (trace) { log.trace("Cancelling delivery " + cancel.getDeliveryId()); }
         del.cancel();
      }
      else
      {
         if (expired)
         {
View Full Code Here

Examples of org.jboss.messaging.core.impl.SimpleDelivery.cancel()

                     ReferenceInfo mInfo = refInfoMap.get(m.getMessageID());
                     mref.setDeliveryCount(mInfo.getDeliveryCount());
                     mref.setScheduledDeliveryTime(mInfo.getScheduledDelivery());
                    
                     Delivery del = new SimpleDelivery(ch, mref, true, true);
                     del.cancel();
                  }
               }
            }
         }
View Full Code Here

Examples of org.jboss.netty.channel.ChannelFuture.cancel()

      future.addListener(completionListener);
      return new Future<Void>() {

        @Override
        public boolean cancel(boolean arg0) {
          return future.cancel();
        }

        @Override
        public Void get() throws InterruptedException,
            ExecutionException {
View Full Code Here

Examples of org.jboss.netty.util.Timeout.cancel()

    {
      // if queue is full remove an element and undo its timer
      T o = q.remove();
      Timeout timer = _timers.remove(o);
      if (timer != null)
        timer.cancel();
      Constants.ahessianLogger.warn("queue overflow -> removed "+e);
    }
    if (result)
      _last = e;
   
View Full Code Here

Examples of org.jboss.remoting.ConnectionValidator.cancel()

      field = ConnectionValidator.class.getDeclaredField("stopped");
      field.setAccessible(true);
      boolean stopped = ((Boolean) field.get(cv)).booleanValue();
      assertFalse(stopped);
     
      cv.cancel();
     
      stopped = ((Boolean) field.get(cv)).booleanValue();
      assertTrue(stopped);
      log.info(getName() + " PASSES");
   }
View Full Code Here

Examples of org.jboss.remoting3.jmx.protocol.CancellableDataOutputStream.cancel()

    protected void write(MessageWriter writer) throws IOException {
        CancellableDataOutputStream output = new CancellableDataOutputStream(channel.writeMessage());
        try {
            writer.write(output);
        } catch (IOException e) {
            output.cancel();
            throw e;
        } finally {
            IoUtils.safeClose(output);
        }
    }
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.