dev.alangomes.springspigot.util.scheduler.WrappedRunnable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spigot-spring-boot-starter Show documentation
Show all versions of spigot-spring-boot-starter Show documentation
Spring support for spigot plugins
package dev.alangomes.springspigot.util.scheduler;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
@AllArgsConstructor
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
class WrappedRunnable implements Runnable {
private final SchedulerService scheduler;
@EqualsAndHashCode.Include
private final Runnable runnable;
@Override
public void run() {
scheduler.scheduleSyncDelayedTask(runnable);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy