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, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitops, setEnvironmentprotected ThreadService threadService
protected long numberOfElements
public void setChunk(Chunk definition)
ChunkerOpChunk for which will be multithreaded.public void setNumberOfElements(int totalSize)
ChunkerOpsetNumberOfElements in interface ChunkerOppublic boolean isCanceled()
isCanceled in interface Cancelablepublic void cancel(String reason)
cancel in interface Cancelablepublic String getCancelReason()
getCancelReason in interface CancelableCopyright © 2014–2022 ImageJ. All rights reserved.