import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Property;
import org.apache.felix.scr.annotations.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@Component
@Service
@Property(name="scheduler.expression", value = "0 * * * * ?")
public class ScheduledJob implements Runnable {
private static final Logger LOGGER = LoggerFactory.getLogger(ScheduledJob.class);
public void run() {
// your code goes here ...
}
}
Abonnieren
Kommentare zum Post (Atom)
Keine Kommentare:
Kommentar veröffentlichen