Examples of interrupt()


Examples of com.linkedin.databus.core.DatabusThreadBase.interrupt()

    {
      DatabusThreadBase applierThread = applierThreadEntry.getValue();
      if (applierThread.isAlive())
      {
        applierThread.shutdownAsynchronously();
        applierThread.interrupt();
        applierThread.awaitShutdownUniteruptibly();
      }
    }

    if (_dbDiskSpaceTriggerThread.isAlive())

Examples of com.mashape.unirest.http.async.utils.AsyncIdleConnectionMonitorThread.interrupt()

      asyncClient.close();
    }
   
    AsyncIdleConnectionMonitorThread asyncMonitorThread = (AsyncIdleConnectionMonitorThread) Options.getOption(Option.ASYNC_MONITOR);
    if (asyncMonitorThread != null) {
      asyncMonitorThread.interrupt();
    }
  }
 
  public static GetRequest get(String url) {
    return new GetRequest(HttpMethod.GET, url);

Examples of com.mashape.unirest.http.utils.SyncIdleConnectionMonitorThread.interrupt()

      syncClient.close();
    }
   
    SyncIdleConnectionMonitorThread syncIdleConnectionMonitorThread = (SyncIdleConnectionMonitorThread) Options.getOption(Option.SYNC_MONITOR);
    if (syncIdleConnectionMonitorThread != null) {
      syncIdleConnectionMonitorThread.interrupt();
    }
   
    // Closing the Async HTTP client (if running)
    CloseableHttpAsyncClient asyncClient = (CloseableHttpAsyncClient) Options.getOption(Option.ASYNCHTTPCLIENT);
    if (asyncClient != null && asyncClient.isRunning()) {

Examples of com.notnoop.apns.internal.QueuedApnsServiceTest.ConnectionStub.interrupt()

        queued.push(notification);
        queued.push(notification);
        long time2 = System.currentTimeMillis();
        assertTrue("queued.push() blocks", (time2 - time1) < delay);

        connection.interrupt();
        connection.semaphore.acquireUninterruptibly();
        verify(connection, times(2)).sendMessage(notification);

        queued.stop();
    }

Examples of com.opengamma.engine.view.worker.SingleThreadViewProcessWorker.BorrowedThread.interrupt()

    assertThreadReachesState(recalcThread, Thread.State.TIMED_WAITING);

    // We're now 'between cycles', waiting for the arrival of live data.
    // Interrupting should terminate the job gracefully
    worker.getJob().terminate();
    recalcThread.interrupt();

    recalcThread.join(TIMEOUT);
    assertEquals(Thread.State.TERMINATED, recalcThread.getState());
  }

Examples of com.orientechnologies.orient.server.network.protocol.ONetworkProtocol.interrupt()

    final OClientConnection connection = connections.get(iChannelId);
    if (connection != null) {
      final ONetworkProtocol protocol = connection.protocol;
      if (protocol != null)
        // INTERRUPT THE NEWTORK MANAGER TOO
        protocol.interrupt();
    }
  }

  /**
   * Disconnects a client connections

Examples of com.packtpub.java7.concurrency.chapter1.recipe3.task.PrimeGenerator.interrupt()

    } catch (InterruptedException e) {
      e.printStackTrace();
    }
   
    // Interrupt the prime number generator
    task.interrupt();
  }

}

Examples of com.webobjects.monitor.application.starter.ApplicationStarter.interrupt()

    }
   
    private WOComponent bounceClickedWithBouncer(ApplicationStarter bouncer) {
        ApplicationStarter old = currentBouncer();
        if (old != null) {
            old.interrupt();
        }
        session().setObjectForKey(bouncer, bouncerName());
        bouncer.start();
        return newDetailPage();
    }

Examples of de.anomic.server.serverCore.interrupt()

                }
                // shut down
                if (RowCollection.sortingthreadexecutor != null) RowCollection.sortingthreadexecutor.shutdown();
                Log.logConfig("SHUTDOWN", "caught termination signal");
                server.terminate(false);
                server.interrupt();
                server.close();
                /*
                if (server.isAlive()) try {
                    // TODO only send request, don't read response (cause server is already down resulting in error)
                    final DigestURI u = new DigestURI((server.withSSL()?"https":"http")+"://localhost:" + serverCore.getPortNr(port), null);

Examples of de.anomic.server.serverCore.interrupt()

//                MultiThreadedHttpConnectionManager.shutdownAll();

                // idle until the processes are down
                if (server.isAlive()) {
                    //Thread.sleep(2000); // wait a while
                    server.interrupt();
//                    MultiThreadedHttpConnectionManager.shutdownAll();
                }
//                MultiThreadedHttpConnectionManager.shutdownAll();
                Log.logConfig("SHUTDOWN", "server has terminated");
                sb.close();
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.