public abstract class AbstractChunker extends AbstractOp implements ChunkerOp
ChunkerOp
.Modifier and Type | Field and Description |
---|---|
protected Chunk |
chunkable
Chunk to be executed |
protected long |
numberOfElements
Total number of elements to be processed
|
protected ThreadService |
threadService
ThreadService used for multi-threading
|
NAME
Constructor and Description |
---|
AbstractChunker() |
Modifier and Type | Method and Description |
---|---|
void |
cancel(String reason)
Cancels the command execution, with the given reason for doing so.
|
String |
getCancelReason() |
boolean |
isCanceled() |
void |
setChunk(Chunk definition)
Sets the
Chunk for which will be multithreaded. |
void |
setNumberOfElements(int totalSize)
Sets the total number of elements which should be processed in parallel.
|
ops, setEnvironment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ops, setEnvironment
protected ThreadService threadService
protected long numberOfElements
public void setChunk(Chunk definition)
ChunkerOp
Chunk
for which will be multithreaded.public void setNumberOfElements(int totalSize)
ChunkerOp
setNumberOfElements
in interface ChunkerOp
public boolean isCanceled()
isCanceled
in interface Cancelable
public void cancel(String reason)
cancel
in interface Cancelable
public String getCancelReason()
getCancelReason
in interface Cancelable
Copyright © 2014–2022 ImageJ. All rights reserved.