io.github.sinri.keel.servant.queue.KeelQueueNextTaskSeeker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Keel Show documentation
Show all versions of Keel Show documentation
A website framework with VERT.X for ex-PHP-ers, exactly Ark Framework Users.
The newest version!
package io.github.sinri.keel.servant.queue;
import io.vertx.core.Future;
import java.util.function.Supplier;
/**
* @since 2.7 moved here
* @since 2.8 extends Supplier{Future{KeelQueueTask}}
*/
public interface KeelQueueNextTaskSeeker extends Supplier> {
/**
* 找出一个task且保证其完成锁定。
*
* @return Future为成功时,如内容为空,则说明已经找不到任务;如非空,则为准备好的任务。Future为失败时表示获取任务过程失败。
* @since 3.0.9 锁定功能不再要求以完成lockTaskBeforeDeployment方法的调用来实现。
* @since 2.8
*/
@Override
Future get();
/**
* @since 2.8 default to 10s
*/
default long waitingMs() {
return 1000 * 10;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy