bitronix.tm.twopc.executor.SyncExecutor Maven / Gradle / Ivy
package bitronix.tm.twopc.executor;
/**
* This implementation executes submitted jobs synchronously.
*
*
* @author lorban
*/
public class SyncExecutor implements Executor {
public Object submit(Job job) {
job.run();
return new Object();
}
public void waitFor(Object future, long timeout) {
}
public boolean isDone(Object future) {
return true;
}
public boolean isUsable() {
return true;
}
public void shutdown() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy