org.semanticweb.elk.util.concurrent.computation
Interface Interrupter

All Known Implementing Classes:
SimpleInterrupter

public interface Interrupter

An abstract interface for interrupting computations and monitoring if computations have been interrupted.

Author:
"Yevgeny Kazakov"

Method Summary
 void clearInterrupt()
          Clears the interrupt status: computation is no longer interrupted
 void interrupt()
          Requests the computation to be interrupted
 boolean isInterrupted()
          Checks if the computation was requested to be interrupted
 

Method Detail

interrupt

void interrupt()
Requests the computation to be interrupted


isInterrupted

boolean isInterrupted()
Checks if the computation was requested to be interrupted

Returns:
true if the computation was requested to be interrupted

clearInterrupt

void clearInterrupt()
Clears the interrupt status: computation is no longer interrupted



Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.