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

io.ebean.backgroundexecutor.IgnoreBackgroundExecutor Maven / Gradle / Ivy

package io.ebean.backgroundexecutor;

import io.ebean.BackgroundExecutor;

import java.util.concurrent.TimeUnit;

/**
 * Implementation that ignores execution requests.
 * 

* In the case of running tests usually you want the background task * to bulkUpdate immediately or not at all. */ public class IgnoreBackgroundExecutor implements BackgroundExecutor { @Override public void execute(Runnable r) { // just ignore } @Override public void executePeriodically(Runnable r, long delay, TimeUnit unit) { // just ignore } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy