org.neo4j.server
Class InterruptThreadTimer
java.lang.Object
org.neo4j.server.InterruptThreadTimer
public abstract class InterruptThreadTimer
- extends Object
Interrupts a thread after a given timeout, can be cancelled if needed.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterruptThreadTimer
public InterruptThreadTimer()
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.