完成 x 秒后安排相同的作业

Schedule same job after x sec on completion

我正在使用 com.github.yigit:android-priority-jobqueue。我不知道如何在完成 x 秒后或在 onRun() 调用中安排相同的作业。有什么方法吗?

只需添加 delayInMs() 方法,同时在构造函数中创建。

        super(new Params (PRIORITY).requireNetwork ().groupBy (Const.POOLING_QUEUE_GROUP).delayInMs (120000).persist ());//120 sec delay