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

bitronix.tm.twopc.executor.SyncExecutor Maven / Gradle / Ivy

There is a newer version: 2.1.4
Show newest version
package bitronix.tm.twopc.executor;

/**
 * This implementation executes submitted jobs synchronously.
 * 

© Bitronix Software

* * @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