org.neo4j.server
Class InterruptThreadTimer

java.lang.Object
  extended by org.neo4j.server.InterruptThreadTimer

public abstract class InterruptThreadTimer
extends Object

Interrupts a thread after a given timeout, can be cancelled if needed.


Nested Class Summary
static class InterruptThreadTimer.InterruptThreadTask
           
static class InterruptThreadTimer.State
           
 
Constructor Summary
InterruptThreadTimer()
           
 
Method Summary
static InterruptThreadTimer createNoOpTimer()
           
static InterruptThreadTimer createTimer(long timeoutMillis, Thread threadToInterrupt)
           
abstract  InterruptThreadTimer.State getState()
           
abstract  long getTimeoutMillis()
           
abstract  void startCountdown()
           
abstract  void stopCountdown()
           
abstract  boolean wasTriggered()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterruptThreadTimer

public InterruptThreadTimer()
Method Detail

createTimer

public static InterruptThreadTimer createTimer(long timeoutMillis,
                                               Thread threadToInterrupt)

createNoOpTimer

public static InterruptThreadTimer createNoOpTimer()

startCountdown

public abstract void startCountdown()

stopCountdown

public abstract void stopCountdown()

wasTriggered

public abstract boolean wasTriggered()

getState

public abstract InterruptThreadTimer.State getState()

getTimeoutMillis

public abstract long getTimeoutMillis()


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.