Examples of interrupt()


Examples of ca.carleton.gcrc.couch.submission.impl.SubmissionRobotThread.interrupt()

    SubmissionRobotThread thread = workerThread;
    workerThread = null;

    thread.shutdown();
    thread.join(millis);
    thread.interrupt();
  }

}

Examples of co.paralleluniverse.actors.Actor.interrupt()

        @Override
        public void interrupt() {
            final Actor a = getActor();
            if (a != null)
                a.interrupt();
        }
       
        @Override
        public void send(Message message) throws SuspendExecution {
            final Actor a = getActor();

Examples of co.paralleluniverse.actors.ActorRef.interrupt()

        @Override
        public void interrupt() {
            final ActorRef a = getActor();
            if (a != null)
                a.interrupt();
        }

        @Override
        public void send(Message message) throws SuspendExecution {
            final ActorRef a = getActor();

Examples of co.paralleluniverse.strands.Strand.interrupt()

                final ShutdownMessage message = new ShutdownMessage(LocalActor.self());
                sendOrInterrupt(message);
            } catch (QueueCapacityExceededException e) {
                final Strand strand = getStrand();
                if (strand != null)
                    strand.interrupt();
            }
        }
    }

    protected Initializer getInitializer() {

Examples of com.alibaba.jstorm.utils.SmartThread.interrupt()

    int size = threads.size();
    for (int i = 0; i < size; i++) {
      SmartThread thread = threads.elementAt(i);
      thread.cleanup();
      JStormUtils.sleepMs(10);
      thread.interrupt();
      try {
        thread.join();
      } catch (InterruptedException e) {
        LOG.error(e.getMessage(), e);
      }

Examples of com.alipay.bluewhale.core.utils.SmartThread.interrupt()

        active.set(false);
       
        int size = threads.size();
        for (int i = 0; i < size; i++) {
            SmartThread thread = threads.elementAt(i);
            thread.interrupt();
            try {
                thread.join();
            } catch (InterruptedException e) {
               LOG.error(e.getMessage(), e);
            }

Examples of com.almworks.sqlite4java.SQLiteConnection.interrupt()

                 * http://almworks.com/sqlite4java/javadoc/com/almworks/sqlite4java/SQLiteConnection.html#interrupt()
                 * SQLite docs: http://www.sqlite.org/c3ref/interrupt.html
                 */
                log.info("Long running query [" + queryAndTime.query + "] ran for more than ["
                    + timeout + "] ms. Interrupting it!");
                conn.interrupt();
              } catch(SQLiteException e) {
                //
              } finally {
                queryAndTime.query = null;
                queryAndTime.time = -1l; // connection will not be considered until a new query is executed

Examples of com.dotcms.publisher.integrity.IntegrityDataGeneratorThread.interrupt()

                        //Verify if the thread is on the session for this given request id
                        if ( servletContext.getAttribute( "integrityDataGeneratorThread_" + requestId ) != null ) {

                            //If found interrupt the process
                            IntegrityDataGeneratorThread integrityDataGeneratorThread = (IntegrityDataGeneratorThread) servletContext.getAttribute( "integrityDataGeneratorThread_" + requestId );
                            integrityDataGeneratorThread.interrupt();
                            servletContext.removeAttribute( "integrityDataGeneratorThread_" + requestId );

                            return Response.status( HttpStatus.SC_RESET_CONTENT ).entity( "Interrupted checking process on End Point server ( " + remoteIP + ")." ).build();
                        }
                    default:

Examples of com.jbidwatcher.util.queue.TimerHandler.interrupt()

    final TimerHandler timeQueue = sq.start();

    //  This is how we shut down cleanly.
    MQFactory.getConcrete("jbidwatcher").registerListener(new MessageQueue.Listener() {
      public void messageAction(Object deQ) {
        timeQueue.interrupt();
      }
    });

    boolean updaterStarted = false;
    if(Platform.isMac()) {

Examples of com.linkedin.d2.discovery.event.PropertyEventThread.interrupt()

    thread.start();

    assertTrue(thread.send(testEvent));
    assertTrue(thread.send(testEvent));

    thread.interrupt();
    thread.join(0);

    // Also doesn't make sense with hack
    //assertFalse(thread.send(testEvent));
    assertEquals(testEvent.getCount(), 2);
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.