Skip to content
Snippets Groups Projects
Commit cf2d1510 authored by brinn's avatar brinn
Browse files

refactor: rename HardStopException to StopException

SVN: 10357
parent e57ba96a
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ package ch.systemsx.cisd.common.concurrent; ...@@ -19,7 +19,7 @@ package ch.systemsx.cisd.common.concurrent;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
import ch.systemsx.cisd.common.exceptions.CheckedExceptionTunnel; import ch.systemsx.cisd.common.exceptions.CheckedExceptionTunnel;
import ch.systemsx.cisd.common.exceptions.HardStopException; import ch.systemsx.cisd.common.exceptions.StopException;
import ch.systemsx.cisd.common.exceptions.InterruptedExceptionUnchecked; import ch.systemsx.cisd.common.exceptions.InterruptedExceptionUnchecked;
import ch.systemsx.cisd.common.utilities.ITerminable; import ch.systemsx.cisd.common.utilities.ITerminable;
...@@ -323,7 +323,7 @@ public final class TerminableCallable<V> implements Callable<V>, ITerminable ...@@ -323,7 +323,7 @@ public final class TerminableCallable<V> implements Callable<V>, ITerminable
if (throwableOrNull == null) if (throwableOrNull == null)
{ {
cause = FinishCause.COMPLETED; cause = FinishCause.COMPLETED;
} else if (throwableOrNull instanceof HardStopException) } else if (throwableOrNull instanceof StopException)
{ {
cause = FinishCause.STOPPED; cause = FinishCause.STOPPED;
} else if (throwableOrNull instanceof InterruptedExceptionUnchecked } else if (throwableOrNull instanceof InterruptedExceptionUnchecked
......
...@@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; ...@@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock; import java.util.concurrent.locks.ReentrantLock;
import ch.systemsx.cisd.common.exceptions.HardStopException; import ch.systemsx.cisd.common.exceptions.StopException;
/** /**
* A class that provides the framework for guarding a {@link Thread} such that it can be stopped * A class that provides the framework for guarding a {@link Thread} such that it can be stopped
...@@ -53,7 +53,7 @@ final class ThreadGuard ...@@ -53,7 +53,7 @@ final class ThreadGuard
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
private static void stopNow(Thread t) private static void stopNow(Thread t)
{ {
t.stop(new HardStopException()); t.stop(new StopException());
} }
// Do not synchronize this or things will stop working! // Do not synchronize this or things will stop working!
......
...@@ -21,7 +21,7 @@ package ch.systemsx.cisd.common.exceptions; ...@@ -21,7 +21,7 @@ package ch.systemsx.cisd.common.exceptions;
* *
* @author Bernd Rinn * @author Bernd Rinn
*/ */
public class HardStopException extends InterruptedExceptionUnchecked public class StopException extends InterruptedExceptionUnchecked
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment