Package com.sshtools.client.tasks
Class Task
java.lang.Object
com.sshtools.common.ssh.AbstractRequestFuture
com.sshtools.common.ssh.ConnectionAwareTask
com.sshtools.client.tasks.Task
- All Implemented Interfaces:
com.sshtools.common.ssh.RequestFuture
,Runnable
- Direct Known Subclasses:
AbstractConnectionTask
,SftpClientTask
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.sshtools.common.ssh.ConnectionAwareTask
con, lastError
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Task
ofRunnable
(com.sshtools.common.ssh.SshConnection con, Task.TaskRunnable<T> runnable) Methods inherited from class com.sshtools.common.ssh.ConnectionAwareTask
doTask, getLastError, run
Methods inherited from class com.sshtools.common.ssh.AbstractRequestFuture
addFutureListener, done, isDone, isSuccess, waitFor, waitForever
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sshtools.common.ssh.RequestFuture
isDoneAndSuccess
-
Constructor Details
-
Task
public Task(com.sshtools.common.ssh.SshConnection con) -
Task
-
-
Method Details
-
ofRunnable
public static <T> Task ofRunnable(com.sshtools.common.ssh.SshConnection con, Task.TaskRunnable<T> runnable)
-