Files
DistributedSystems/week3_TinsaeGhilay/Task 1/src/compute/Task.java
2025-12-21 18:23:33 +01:00

16 lines
468 B
Java

package compute;
/**
* This interface is the type of parameter to the executeTask() method of the
* Compute interface
* it defines the interface between the compute engine
* and the work that it needs to do, providing the way to start the work
* It defines a single method execute() whose return type is T
* The interface itself also has a type T, which represents the result type of
* the task's computation
*/
public interface Task<T> {
T execute();
}