public abstract class AbstractPreprocessorPlugin extends AbstractContextual implements PreprocessorPlugin
Constructor and Description |
---|
AbstractPreprocessorPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
cancel(String reason)
Cancels the operation execution, with the given reason for doing so.
|
String |
getCancelReason()
Gets a message describing why the operation was canceled.
|
boolean |
isCanceled()
Gets whether the operation has been canceled.
|
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
context, getContext, setContext
process
public boolean isCanceled()
Cancelable
isCanceled
in interface Cancelable
public void cancel(String reason)
Cancelable
This method merely sets the operation status to canceled; it cannot
necessarily stop the operation itself. That is, it is the responsibility of
each individual operation to check Cancelable.isCanceled()
in a timely manner
during execution, and stop doing whatever it is doing if the flag has been
tripped.
cancel
in interface Cancelable
reason
- A message describing why the operation is being canceled.public String getCancelReason()
Cancelable
getCancelReason
in interface Cancelable
Copyright © 2015–2022 SciJava. All rights reserved.