Package org.aksw.jena_sparql_api.legacy
Class CallableWithAbortFactory
java.lang.Object
org.aksw.jena_sparql_api.legacy.CallableWithAbortFactory
This class is a wrapper for a callable. The wrapper introduces an abort method
that specifically only interrupts the invocation of the callable.
Should the callable return before abort is called then the thread that invoked the callable
is not interrupted.
The delegate can be exchanged but this must not happen concurrently.
- Author:
- raven
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()booleanisDone()<T> CallableWithAbort<T>setDelegate(Callable<T> delegate)
-
Field Details
-
thread
-
isDone
protected volatile boolean isDone -
abortRequested
-
isAbortException
-
-
Constructor Details
-
CallableWithAbortFactory
-
-
Method Details
-
isDone
public boolean isDone() -
abort
public void abort() -
setDelegate
-