org.jgroups.util.MockTimeScheduler Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote Jakarta Enterprise Beans and Jakarta Messaging, including
all dependencies. It is intended for use by those not using maven, maven users should just import the Jakarta Enterprise Beans and
Jakarta Messaging BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
package org.jgroups.util;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
/**
* Mock implementation of {@link TimeScheduler}, used by unit tests
* @author Bela Ban
* @since 3.0
*/
public class MockTimeScheduler implements TimeScheduler {
public void execute(Runnable command) {
}
public Future> schedule(Runnable command, long delay, TimeUnit unit) {
return null;
}
public Future> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) {
return null;
}
public Future> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) {
return null;
}
public Future> scheduleWithDynamicInterval(Task task) {
return null;
}
public void setThreadFactory(ThreadFactory factory) {
}
public String dumpTimerTasks() {
return null;
}
public int getMinThreads() {
return 0;
}
public void setMinThreads(int size) {
}
public int getMaxThreads() {
return 0;
}
public void setMaxThreads(int size) {
}
public long getKeepAliveTime() {
return 0;
}
public void setKeepAliveTime(long time) {
}
public int getCurrentThreads() {
return 0;
}
public int size() {
return 0;
}
public void stop() {
}
public boolean isShutdown() {
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy