public class RenameFileTask extends Task.OnFile<Void,IOException>
Task.OnFile.Parameter<TParam,TResult,TError extends Exception>NB_PRIORITES, PRIORITY_BACKGROUND, PRIORITY_IMPORTANT, PRIORITY_LOW, PRIORITY_NORMAL, PRIORITY_RATHER_IMPORTANT, PRIORITY_RATHER_LOW, PRIORITY_TOP, PRIORITY_URGENT, STATUS_BLOCKED, STATUS_DONE, STATUS_EXECUTED, STATUS_NOT_STARTED, STATUS_RUNNING, STATUS_STARTED_READY, STATUS_STARTED_WAITING, taskJoin| Modifier and Type | Method and Description |
|---|---|
static IAsync<IOException> |
rename(File source,
File destination,
byte priority)
Rename a file.
|
Void |
run()
Method to implement to execute the task.
|
cancel, cancelIfExecutionNotStarted, changeNextExecutionTime, ensureUnblocked, executeAgainAt, executeAgainIn, executeAt, executeEvery, executeIn, executeNextOccurenceNow, executeNextOccurenceNow, getApplication, getCancelEvent, getDescription, getError, getMaxBlockingTimeInNanoBeforeToLog, getOutput, getPriority, getResult, getStatus, getTaskManager, hasError, isCancelled, isCancelling, isDone, isRunning, isStarted, isSuccessful, ondone, setDescription, setDone, setError, setPriority, start, startOn, startOn, startOnDone, stopRepeat, toStringpublic static IAsync<IOException> rename(File source, File destination, byte priority)
public Void run() throws IOException
Taskrun in class Task<Void,IOException>IOExceptionCopyright © 2019. All rights reserved.