Examples of suspend()


Examples of org.eclipse.jdt.debug.core.IJavaThread.suspend()

  public void suspend(long threadId)
    throws DebugException
  {
    IJavaThread thread = threadMap.get(threadId);
    if (thread != null) {
      thread.suspend();
    }
  }

  /**
   * Resumes execution of the given thread.
View Full Code Here

Examples of org.eclipse.jetty.continuation.Continuation.suspend()

                else {
                    // Jetty 7 does something really weird if you set it to
                    // Long.MAX_VALUE, which is to resume automatically.
                    c.setTimeout(Integer.MAX_VALUE);
                }
                c.suspend();
            }
            else if (action.type == Action.TYPE.RESUME) {
                logger.debug("Resume {}", res);

                if (!resumed.remove(c)) {
View Full Code Here

Examples of org.eclipse.jetty.continuation.Continuation.suspend()

                                            // Support old clients that do not send advice:{timeout:0} on the first connect
                                            if (timeout > 0 && wasConnected && session.isConnected()) {
                                                // Suspend and wait for messages
                                                Continuation continuation = ContinuationSupport.getContinuation(request);
                                                continuation.setTimeout(timeout);
                                                continuation.suspend(response);
                                                scheduler = new LongPollScheduler(session, continuation, reply, browserId);
                                                session.setScheduler(scheduler);
                                                request.setAttribute(LongPollScheduler.ATTRIBUTE, scheduler);
                                                reply = null;
                                                metaConnectSuspended(request, session, timeout);
View Full Code Here

Examples of org.eclipse.jetty.server.AsyncContinuation.suspend()

                AsyncContinuation cont = baseRequest.getAsyncContinuation();
                // this is set to false on internal jetty retrys
                if (!cont.isInitial()) {
                    // The continuation object has been woken up by the
                    // retry. Tell it to go back to sleep.
                    cont.suspend();
                    return;
                }

                //Special handling for API as they continue and setHandled differently
                if (baseRequest.getRequestURI().contains("/api/1.0/")) {
View Full Code Here

Examples of org.fireflow.engine.IProcessInstance.suspend()

   */
  public IProcessInstance suspendProcessInstance(String processInstanceId)
      throws EngineException {
    IProcessInstance processInstance = this
        .findProcessInstanceById(processInstanceId);
    processInstance.suspend();
    return processInstance;
  }

  /* (non-Javadoc)
   * @see org.fireflow.engine.IWorkflowSession#suspendTaskInstance(java.lang.String)
View Full Code Here

Examples of org.fireflow.engine.ITaskInstance.suspend()

   * @see org.fireflow.engine.IWorkflowSession#suspendTaskInstance(java.lang.String)
   */
  public ITaskInstance suspendTaskInstance(String taskInstanceId)
      throws EngineException {
    ITaskInstance taskInst = this.findTaskInstanceById(taskInstanceId);
    taskInst.suspend();
    return taskInst;
  }

  /* (non-Javadoc)
   * @see org.fireflow.engine.IWorkflowSession#withdrawWorkItem(java.lang.String)
View Full Code Here

Examples of org.glassfish.grizzly.filterchain.FilterChainContext.suspend()

           
            service(request, response);
            return !suspendStatus.getAndInvalidate();
        } else {
            final FilterChainContext ctx = request.getContext();
            ctx.suspend();
           
            threadPool.execute(new Runnable() {

                @Override
                public void run() {
View Full Code Here

Examples of org.glassfish.jersey.server.internal.process.AsyncContext.suspend()

        @Override
        public Response apply(final ContainerRequestContext req) {
            // Suspend current request
            final AsyncContext asyncContext = asyncContextProvider.get();
            asyncContext.suspend();

            Executors.newSingleThreadExecutor().submit(new Runnable() {

                @Override
                public void run() {
View Full Code Here

Examples of org.glassfish.jersey.server.spi.ContainerResponseWriter.suspend()

                            LOGGER.log(Level.SEVERE, LocalizationMessages.ERROR_WRITING_RESPONSE_ENTITY_CHUNK(), ex);
                            close = true;
                        }
                        // suspend the writer indefinitely (passing null timeout handler is ok in such case).
                        // TODO what to do if we detect that the writer has already been suspended? override the timeout value?
                        if (!writer.suspend(0, TimeUnit.SECONDS, null)) {
                            LOGGER.fine(LocalizationMessages.ERROR_SUSPENDING_CHUNKED_OUTPUT_RESPONSE());
                        }
                    }

                    if (close) {
View Full Code Here

Examples of org.infinispan.transaction.tm.DummyTransactionManager.suspend()

      // get a lock on cache 2 and hold on to it.
      DummyTransactionManager tm = (DummyTransactionManager) TestingUtil.getTransactionManager(cache2);
      tm.begin();
      cache2.put("block", "block");
      assert tm.getTransaction().runPrepare();
      tm.suspend();
      cache1.put("block", "v");
   }

   static class NonSerializabeData {
      int i;
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.