All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xiaoleilu.hutool.cron.task.RunnableTask Maven / Gradle / Ivy

package com.xiaoleilu.hutool.cron.task;

/**
 * {@link Runnable} 的 {@link Task}包装
 * @author Looly
 *
 */
public class RunnableTask implements Task{
	private Runnable runnable;
	
	public RunnableTask(Runnable runnable) {
		this.runnable = runnable;
	}

	@Override
	public void execute() {
		runnable.run();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy