Class ManagedJob<T>
- java.lang.Object
-
- org.neotropic.kuwaiba.core.services.threading.ManagedJob<T>
-
- Type Parameters:
T
- The type of the result of the job.
- All Implemented Interfaces:
Supplier
public abstract class ManagedJob<T> extends Object implements Supplier
Defines methods to update the progress and state of a Kuwaiba job, so it can be managed by the Threading Service.- Author:
- Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description protected ManagedJobDescriptor
descriptor
-
Constructor Summary
Constructors Constructor Description ManagedJob(UserProfileLight user)
Default constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
get()
ManagedJobDescriptor
getDescriptor()
-
-
-
Field Detail
-
descriptor
protected ManagedJobDescriptor descriptor
-
-
Constructor Detail
-
ManagedJob
public ManagedJob(UserProfileLight user)
Default constructor.- Parameters:
user
- The user the job will be run by.
-
-
Method Detail
-
getDescriptor
public ManagedJobDescriptor getDescriptor()
-
-