/** * If interrupted, clears the flag and throws ElkInterruptedException * * @throws ElkInterruptedException * if interrupted */ public void checkInterrupt() throws ElkInterruptedException { if (isInterrupted()) { isInterrupted_ = false; throw new ElkInterruptedException(); } }
/** * If interrupted, clears the interruption status and throws * ElkInterruptedException. * <p> * This method should be called only from inside of the reasoner. Also it * must be called from the same thread as the one on which the reasoning * methods run. Otherwise it blocks until the reasoning method exits. * * @throws ElkInterruptedException * if interrupted */ public synchronized void checkInterrupt() throws ElkInterruptedException { getInterrupter().checkInterrupt(); }
/** * interrupts running reasoning stages */ public void interrupt() { LOGGER_.debug("Interrupt requested"); getInterrupter().interrupt(); }
/** * If interrupted, clears the flag and throws ElkInterruptedException * * @throws ElkInterruptedException * if interrupted */ public void checkInterrupt() throws ElkInterruptedException { if (isInterrupted()) { isInterrupted_ = false; throw new ElkInterruptedException(); } }
/** * If interrupted, clears the interruption status and throws * ElkInterruptedException. * <p> * This method should be called only from inside of the reasoner. Also it * must be called from the same thread as the one on which the reasoning * methods run. Otherwise it blocks until the reasoning method exits. * * @throws ElkInterruptedException * if interrupted */ public synchronized void checkInterrupt() throws ElkInterruptedException { getInterrupter().checkInterrupt(); }
/** * interrupts running reasoning stages */ public void interrupt() { LOGGER_.debug("Interrupt requested"); getInterrupter().interrupt(); }
/** * If interrupted, clears the flag and throws ElkInterruptedException * * @throws ElkInterruptedException * if interrupted */ public void checkInterrupt() throws ElkInterruptedException { if (isInterrupted()) { isInterrupted_ = false; throw new ElkInterruptedException(); } }
protected void checkInterrupt() throws ElkInterruptedException { reasoner.getInterrupter().checkInterrupt(); }
/** * interrupts running reasoning stages */ public void interrupt() { LOGGER_.debug("Interrupt requested"); getInterrupter().interrupt(); }
@Override public boolean isInterrupted() { return reasoner.getInterrupter().isInterrupted(); }
protected void checkInterrupt() throws ElkInterruptedException { reasoner.getInterrupter().checkInterrupt(); }
@Override public boolean isInterrupted() { return reasoner.getInterrupter().isInterrupted(); }
protected void checkInterrupt() throws ElkInterruptedException { reasoner.getInterrupter().checkInterrupt(); }
@Override public boolean isInterrupted() { return reasoner.getInterrupter().isInterrupted(); }
/** * If interrupted, clears the interruption status and throws * ElkInterruptedException. * <p> * This method should be called only from inside of the reasoner. Also it * must be called from the same thread as the one on which the reasoning * methods run. Otherwise it blocks until the reasoning method exits. * * @throws ElkInterruptedException * if interrupted */ public synchronized void checkInterrupt() throws ElkInterruptedException { getInterrupter().checkInterrupt(); }
@Override public boolean isInterrupted() { if (interruptMonitor_.isInterrupted()) { LOGGER_.debug("========== INTERRUPT =========="); interrupt(); } return super.isInterrupted(); }