I'm trying to iterate over a Set that is sent to my Batch Class, I am getting an error stating the following:
Class FileCleanup must implement the method: void Database.Batchable.execute(Database.BatchableContext, List) (Line: 1, Column: 14)
Can someone explain what I'm doing wrong and how I should correct iterate over the set?
Here is my code
global class FileCleanup implements Database.Batchable<String>, Database.AllowsCallouts {
//String query;
public Set<String> cleanupList;
global FileCleanup(Set<String> cleanupList) {
this.cleanupList = cleanupList;
}
global Iterable<String> start(Database.BatchableContext BC) {
return cleanupList;
}
global void execute(Database.BatchableContext BC, Set<String> scope) {
/// do some logic here
}
global void finish(Database.BatchableContext BC) {
}
}